Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of VM tags is not working in v1.14.0 #555

Closed
ashbondu opened this issue Aug 24, 2018 · 0 comments
Closed

Update of VM tags is not working in v1.14.0 #555

ashbondu opened this issue Aug 24, 2018 · 0 comments
Assignees

Comments

@ashbondu
Copy link

ashbondu commented Aug 24, 2018

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.

@ashbondu 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
iscai-msft added a commit to iscai-msft/azure-libraries-for-java that referenced this issue Sep 13, 2018
jianghaolu pushed a commit that referenced this issue Sep 19, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants