Azure CLI 2 cheatsheet
Azure CLI 2: Sign-in and setup
8 common Azure CLI 2 tasks.
Sign in without a browser
Sign in on a machine with no browser by entering a code on another device.
az login --use-device-code
Show the current subscription
Show which account and subscription commands will use.
az account show
Switch subscription
Choose the subscription later commands run against.
az account set --subscription "My Subscription"
Set defaults
Set a default resource group and location so you don't repeat them.
az configure --defaults group=my-rg location=westeurope