Create a resource group
az group create --name someRG --location eastus
Create a Linux VM
az vm create --resource-group someRG--name someVM--image ubuntults
VM lifecycle
az vm redeploy --resource-group someRG--name someVM
az vm start --resource-group someRG--name someVM
az vm deallocate --resource-group someRG--name someVM
az vm show --resource-group someRG--name someVM
Show ip
az vm show -d -g someRG-n zmapScan --query publicIps -o tsv
Remote execute
ssh [email protected] 'uptime'