Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Retrieve roles states using the management REST API

$
0
0

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

https://management.core.windows.net/<sub-id>/services/hostedservices/myservice/deployments/mydep

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 shut-down 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 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>