Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Error while updating a custom Windows Azure Diagnostics configuration xml from powershell. "Invalid update to extension reference for role"

$
0
0

I am attempting to upload a manually edited WADConfig xml to my VM. The WAD service is functioning correctly, I needed to add some custom WinEventLogs. The prescribed steps result in an error.

What am I overlooking?

-----------------------------------

I am following these instructions:

Step 5: Remotely install Diagnostics on your Azure Virtual Machine

azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/#virtual-machine

$storage_name ="wadexamplevm"
$key
="<StorageAccountKey>"
$config_path
="c:\users\<user>\documents\visual studio 2013\Projects\WadExampleVM\WadExampleVM\WadExample.xml"
$service_name
="wadexamplevm"
$vm_name
="WadExample"
$storageContext
=New-AzureStorageContext-StorageAccountName $storage_name -StorageAccountKey $key
$VM1
=Get-AzureVM-ServiceName $service_name -Name $vm_name
$VM2
=Set-AzureVMDiagnosticsExtension-DiagnosticsConfigurationPath $config_path-Version"1.*"-VM $VM1 -StorageContext $storageContext
$VM3
=Update-AzureVM-ServiceName $service_name -Name $vm_name-VM $VM2.VM

-----------------------------------------------------------

Unfortunately, I am receiving this error:

Update-AzureVM : BadRequest: Invalid update to extension reference for role: XXXXXX and reference: IaaSDiagnostics.

What's missing from the above script?



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>