Loading tool…
cheatsheet
az loginLog in to Azure CLI
az account showShow current Azure subscription details
az account listList all Azure subscriptions
az account set --subscription 'Subscription Name or ID'Set active Azure subscription
az group create --name MyResourceGroup --location eastusCreate a new resource group
az vm list -o tableList all Azure VMs in table format
az vm create --resource-group MyResourceGroup --name MyVm --image UbuntuLTS --admin-username azureuser --generate-ssh-keysCreate a new Linux VM
az vm start --name MyVm --resource-group MyResourceGroupStart a VM
az vm stop --name MyVm --resource-group MyResourceGroupStop a VM
az vm delete --name MyVm --resource-group MyResourceGroup --yesDelete a VM
az vm show --name MyVm --resource-group MyResourceGroup -d --query publicIps -o tsvGet public IP of a VM
az storage account list -o tableList all storage accounts
az storage account create --name mystorageaccount --resource-group MyResourceGroup --location eastus --sku Standard_LRSCreate a storage account
az storage container create --name mycontainer --account-name mystorageaccount --public-access offCreate a blob container
az storage blob upload --container-name mycontainer --account-name mystorageaccount --name myblob.txt --file /path/to/local_file.txtUpload a blob
az aks list -o tableList AKS clusters
az aks create --resource-group MyResourceGroup --name MyAksCluster --node-count 1 --generate-ssh-keysCreate an AKS cluster
az aks get-credentials --resource-group MyResourceGroup --name MyAksClusterGet kubectl credentials for AKS
az webapp list -o tableList all web apps
az webapp create --resource-group MyResourceGroup --plan MyPlan --name MyWebApp --runtime 'NODE|18-lts'Create a web app
Get new cheatsheets & tools in your inbox
No spam — just new releases, occasionally.