Manage Azure subscriptions

Sep 26, 2019 · 1 min read · Post a comment
Manage Azure subscriptions

Azure subscriptions are used for deploying and consuming Azure resources. A single Azure account can have multiple subscriptions, but there are some limitations. You can combine multiple Azure resources into a single Azure Resource Group. These groups are managed by Azure Resource Manager.


  • Azure subscription
  • Azure CLI


Step 1. Open Terminal and list the active subscriptions:

az account list --output table

It will list all available subscriptions in a table format. You can output the results with other formats like: json, jsonc, yaml, and tsv.

Step 2. Run a command to change the subscription.

az account set --subscription <SubscriptionId>

Replace the part with the actual subscription id.

Check default subscription

It’s always a good practice to check which subscription we are using before managing the Azure resources. There are a couple of ways to do this:

1. With az account show command:

az account show --output jsonc

Terminal AZ Subscription

Note: When using show command, it will display the current subscription with every output format except table.

2. With az account list command:

az account list --output table

Terminal AZ Subscription1

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.