To start a VM, you can use the Start-AzureRmVM command. Run the following command to start the myVM virtual machine:
Start-AzureRmVM -ResourceGroupName "VMLab" -Name "myVM"
The preceding command starts the myVM virtual machine in the VMLab resource group.
Check the status using Get-AzureRmVM as before:
Get-AzureRmVM `
-ResourceGroupName "VMLab" `
-Name "myVM" `
-Status
The preceding command will display the status of the myVM virtual machine.