Skip to content

Common ​

Login ​

bash
az login

Change Active Subscription ​

az account set --subscription "<subscription id> or <subscription name>"

Setup Default Value Resource Group and Location ​

bash
az configure --defaults group=<resource group> location=<location>

Subscription List ​

bash
az account list

Subscription Id & Name ​

bash
az account list  --output json | jq '.[] | .id, .name'