For system, network and cloud administrators
In order to make a particular Azure subscription as a default subscription, type:
az account set --subscription "yourAzuresubscriptionID"
In order to set a default Azure resource group, type:
az configure --defaults group="yourresourcegroup"
In order to view a particular Azure resource group’s location, type in your shell:
az group show --resource-group yourresourcegroup --query location