You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the same operation in v1.10.0 which was working for us till now. The request body contains the new tag added.
{"properties":{"hardwareProfile":{"vmSize":"Standard_D4_v3"},"storageProfile":{"imageReference":{"publisher":"MicrosoftWindowsDesktop","offer":"Windows-10","sku":"RS3-Pro","version":"latest"},"osDisk":{"osType":"Windows","name":"OSDISKwin10","caching":"ReadWrite","createOption":"FromImage","managedDisk":{"id":"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Compute/disks/OSDISKwin10"}},"dataDisks":[]},"osProfile":{"computerName":"win10","adminUsername":"vmware","windowsConfiguration":{"provisionVMAgent":true,"enableAutomaticUpdates":true},"secrets":[]},"networkProfile":{"networkInterfaces":[{"properties":{"primary":true},"id":"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Network/networkInterfaces/NICwin10"}]}},"location":"westus2","tags":{"test":"testValue"}}
Clearly the new tags added are missing in the @patch request created in v1.14.0.
Hence the Azure is not adding the new tags to the VM resource.
The text was updated successfully, but these errors were encountered:
ashbondu
changed the title
Update of VM tags is not working
Update of VM tags is not working in v1.14.0
Aug 24, 2018
* added slf for logging to poms that didn't have it
* got rid of random vs files
* got rid of more vs files
* fixing github issue #555
* added vm tag recording files
Tried the following operation
virtualMachine.update().withTag("test", "testValue").apply();
Results in the following request body in v1.14.0
{"properties":{"hardwareProfile":{"vmSize":"Standard_D4_v3"},"storageProfile":{"imageReference":{"publisher":"MicrosoftWindowsDesktop","offer":"Windows-10","sku":"RS3-Pro","version":"latest"},"osDisk":{"osType":"Windows","name":"OSDISKwin10","caching":"ReadWrite","createOption":"FromImage","managedDisk":{"id":"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Compute/disks/OSDISKwin10"}},"dataDisks":[]},"osProfile":{"computerName":"win10","adminUsername":"vmware","windowsConfiguration":{"provisionVMAgent":true,"enableAutomaticUpdates":true},"secrets":[]},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Network/networkInterfaces/NICwin10","properties":{"primary":true}}]}}}
Tried the same operation in v1.10.0 which was working for us till now. The request body contains the new tag added.
{"properties":{"hardwareProfile":{"vmSize":"Standard_D4_v3"},"storageProfile":{"imageReference":{"publisher":"MicrosoftWindowsDesktop","offer":"Windows-10","sku":"RS3-Pro","version":"latest"},"osDisk":{"osType":"Windows","name":"OSDISKwin10","caching":"ReadWrite","createOption":"FromImage","managedDisk":{"id":"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Compute/disks/OSDISKwin10"}},"dataDisks":[]},"osProfile":{"computerName":"win10","adminUsername":"vmware","windowsConfiguration":{"provisionVMAgent":true,"enableAutomaticUpdates":true},"secrets":[]},"networkProfile":{"networkInterfaces":[{"properties":{"primary":true},"id":"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Network/networkInterfaces/NICwin10"}]}},"location":"westus2","tags":{"test":"testValue"}}
Clearly the new tags added are missing in the @patch request created in v1.14.0.
Hence the Azure is not adding the new tags to the VM resource.
The text was updated successfully, but these errors were encountered: