cancel
Showing results for 
Search instead for 
Did you mean: 

Get Power state of Azure virtual machine

Want to get power state of Azure Virutal Machines.

Refering this blog

last(body('Read_a_resource')?['statuses'])?['code']

may return 'PowerState/deallocated' or 'PowerState/running', but body('Read_a_resource')?['statuses'] returns NULL object in my environment.

 

Status: New
Comments
Level: Power Up

Same here...I get Null value as well.  Did you ever figure this out?