We would like to be able to query the power state of all VMs in a particular resource group and/or subscription using an API. I can see power state is returned by https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/instanceview, but this only provides power state for a single, specified VM. Is there another API that can provide it for multiple VMs?
Many thanks
Tim