Want to get power state of Azure Virutal Machines.
Refering this blog,
may return 'PowerState/deallocated' or 'PowerState/running', but body('Read_a_resource')?['statuses'] returns NULL object in my environment.
Same here...I get Null value as well. Did you ever figure this out?
I was able to get this to work. Did you check your API version? If not, you can open the Azure Portal, go to the VM, then export configuration. It will give you the ARM template for it and you can search for the API version it uses.