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

Using the management REST API to get a role instance status

$
0
0

Hi, I am using the REST API call to get the deployment details:

https://management.core.windows.net/<sub-id>/services/hostedservices/s2ltw8t2/deployments/0M19mvQ9

Now, I want to know the status of the RoleInstances. I can see some relevant fields in the response:

<InstanceStatus>ReadyRole</InstanceStatus>
 <PowerState>Started</PowerState>

But, apparently when I restart the role (using the portal, for example), these fields does not seem to change. It stays on ReadyRole and Started.

When I stop the VM, the whole RoleInstances element disappears and I can no longer get the status in any way.

I know about the opretaions call with the request id, but I wanted to ask if there's a way to get the status without checking the operation status...

Thank you!


Viewing all articles
Browse latest Browse all 12545

Trending Articles