Install Azure CLI

# Windows
https://aka.ms/installazurecliwindows

# macOS
brew update
brew install azure-cli

# Check version
az --version

Help with commands

az find blob
az find "az vm"
az find "az vm create"
az storage blob --help

Connecting to a Subscription

az login

Resource 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>