How to interpret the status of an Azure VM virtual instance?

You can get information about the representation of an instance of a virtual machine . Here's how we find out if the VM is stopped, is it running, etc. However, the data that Azure returns is a bit cryptic and completely undocumented (the official documentation says absolutely nothing about it).

An array of statuses seems most useful. I managed to collect several patterns about its meanings. For example, it usually contains two objects, one of which indicates ProvisioningState , and the other - PowerState . I don’t understand exactly what ProvisioningState means ( what exactly corresponds to ProvisioningState ? ).

I notice that a combination of ProvisioningState/succeeded and some other state seems to imply "this is the final status" (start, stop, generalize, etc.). If this is ProvisioningState/updating , then this is much weirder. I saw that it does not have a secondary state, I saw that it works at this time (and the site seems to be accessible on this virtual machine).

So this brings me to my second question: what does it mean for ProvisioningState be updating or creating , but PowerState is PowerState and the virtual machine seems to be fully functional?

+5
source share
1 answer

I have found some options. Probably a lot more, but this might help someone:

The PowerState/ code has the following meanings for displayStatus : VM starting , VM running , VM deallocating , VM deallocated

If the virtual machine is deleted, the PowerState/ code disappears and you only have the ProvisioningState/ code with the Deleting value for displayStatus .

+1
source

Source: https://habr.com/ru/post/1238573/


All Articles