Create a Resource Group
az group create --name kyannyRG --location southeastasia
az group create -n kyannyRG -l australiaeast
Delete a Resource Group
az group delete --name kyannyRG -y
Create a VM
az vm create -g kyannyRG -n kyannyVM --image UbuntuLTS --public-ip-sku Standard
az vm create -g kyannyRG -n kyannyVM --image UbuntuLTS --public-ip-sku Basic
Delete a VM
az vm delete -g kyannyRG -n kyannyVM -y
SSH to the VM
az ssh vm # install `az ssh` extension; only first time
az ssh vm -g kyannyRG -n kyannyVM --local-user kyanny
# OR
ssh $(az vm list-ip-addresses -g kyannyRG --query '[0].virtualMachine.network.publicIpAddresses[0].ipAddress' -o tsv)