For system, network and cloud administrators
And if you need to stop/start/restart an Azure virtual machine, you can use:
az vm stop --resource-group YourResourceGroup --name YourVMName
The stop can easily be replaced with start or restart. But if you need for the Azure CLI to return immediately and not wait for the actual restart of the virtual machine, you can also add the –no-wait flag.