I am using ARM in Azure.
Azure provides a REST API to get a list of virtual machines.
https://msdn.microsoft.com/en-us/library/azure/mt163572.aspx
Strangely the response data does not seem to provide the state of those machines. Am I looking in the wrong place?
I need to be able to get a list of all virtual machines and carry out actions on them depending on whether or not they are running or stopped etc.