question

haiqianz-8184 avatar image
0 Votes"
haiqianz-8184 asked prmanhas-MSFT answered

How to tell whether a VM has been reimaged.

Say I have a VMSS. I have a vm with id = 0 in this VMSS. Then I update the VMSS model. Now I know the VM has not been upgrade to the latest VMSS model through the field LatestModelApplied. Now I continue to upgrade the VM and reimage the VM. How can I know whether the VM has been reimaged? Any signals, similar to LatestModelApplied, that I can leverage?

azure-cloud-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

prmanhas-MSFT avatar image
1 Vote"
prmanhas-MSFT answered

@haiqianz-8184 Apologies for the delay in response and all the inconvenience caused because of the issue.

I did some research and had internal discussion as well on same. Currently there is no Powershell command to actually tell you whether the image has been reimaged or not. You can check same on portal You can only see it in Activity Log of that VMSS Next to corresponding Resolved Logs says which instance is re imaged, Adding the screenshot for the same:

118930-image.png

118940-image.png

Hope it helps!!!

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.




image.png (140.0 KiB)
image.png (288.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.