xutil.dev
Login

Azure CLI Cheatsheet

Quick reference for Azure CLI commands covering VMs, storage, identity, functions, AKS, networking, configuration, and SQL databases

61 commands

az vm create

Create a virtual machine

az vm list

List virtual machines

az vm start

Start a virtual machine

az vm stop

Stop a virtual machine

az vm deallocate

Deallocate a virtual machine

az vm delete

Delete a virtual machine

az vm resize

Resize a virtual machine

az vm show

Show VM details

az vm list-sizes

List available VM sizes

az vm open-port

Open a port on a VM

az storage account create

Create a storage account

az storage account list

List storage accounts

az storage account delete

Delete a storage account

az storage container create

Create a blob container

az storage blob upload

Upload a blob

az storage blob list

List blobs in a container

az storage blob download

Download a blob

az storage account show-connection-string

Show connection string

az ad user create

Create an Azure AD user

az ad user list

List Azure AD users

az ad sp create-for-rbac

Create a service principal

az role assignment create

Create a role assignment

az role assignment list

List role assignments

az ad group create

Create an Azure AD group

az login

Log in to Azure

az functionapp create

Create a Function App

az functionapp list

List Function Apps

az functionapp delete

Delete a Function App

az webapp create

Create a Web App

az webapp list

List Web Apps

az webapp deploy

Deploy to a Web App

az appservice plan create

Create an App Service plan

az aks create

Create an AKS cluster

az aks get-credentials

Get AKS cluster credentials

az aks list

List AKS clusters

az aks scale

Scale AKS cluster nodes

az aks delete

Delete an AKS cluster

az acr create

Create a container registry

az acr login

Log in to container registry

az network vnet create

Create a virtual network

az network vnet subnet create

Create a subnet

az network nsg create

Create a network security group

az network nsg rule create

Create an NSG rule

az network public-ip create

Create a public IP address

az network lb create

Create a load balancer

az network dns zone create

Create a DNS zone

az group create

Create a resource group

az group list

List resource groups

az group delete

Delete a resource group

az account list

List subscriptions

az account set

Set active subscription

az configure

Manage Azure CLI configuration

az resource list

List resources

az tag create

Create a tag

az sql server create

Create a SQL Server

az sql db create

Create a SQL database

az sql db list

List SQL databases

az sql db delete

Delete a SQL database

az sql server firewall-rule create

Create a firewall rule

az cosmosdb create

Create a Cosmos DB account

az mysql server create

Create a MySQL Server