Install Azure CLI
# Windows
https://aka.ms/installazurecliwindows
# macOS
brew update
brew install azure-cli
# Check version
az --versionHelp with commands
az find blob
az find "az vm"
az find "az vm create"
az storage blob --helpConnecting to a Subscription
az loginResource group
az group create --name <name> --location <location>
az group list
az group list --output table
az group list --query "[?name == '$RESOURCE_GROUP']"
az group create --name <rg name> --location <region>Saving Parameters in Variables
export RESOURCE_GROUP=<rg name>
export AZURE_REGION=eastus
export AZURE_APP_PLAN=<app plan name>
export AZURE_WEB_APP=<web app name>
💡
I work at Microsoft, but the views expressed here are my own and do not represent Microsoft's official positions, guidance, or content.