I used Azure Resource Manager to create a resource group with a couple of VMs and other resources.
How can I read a VM status for a VM that was provisioned, using Azure Resource Manager (ARM), as a resource in a resource group ?
With classic VMs, old scripts use:
$vm.InstanceStatus
However, when I switch to the Azure Resource Manager mode
Switch-AzureMode AzureResourceManager
The VM object doesn't recognize the .InstanceStatus as a valid variable.