I would love to query VMs powerstate with azure cli in bash
Mine goal is to stop a virtual machine, but before that check if the machine was already stopped and vise versa.
So I need to get the powerstate of a specific VM, but I don't see az vm list have that as a parameter. How could that be achieved?
