Subscriptions - az account

Manage subscriptions.

Commands

az account clear Clear all subscriptions from the CLI's local cache.
az account list Get a list of subscriptions for the account.
az account list-locations List supported regions of the current subscription.
az account set Set a subscription as the current subscription.
az account show Show the details of a subscription.

az account clear

To clear the current subscription, use 'az logout'.

az account clear

az account list

Get a list of subscriptions for the account.

az account list [--all]

Optional Parameters

--all
List all subscriptions, rather just 'Enabled' ones.

az account list-locations

List supported regions of the current subscription.

az account list-locations

az account set

Set a subscription as the current subscription.

az account set --subscription

Required Parameters

--subscription
Name or ID of subscription.

az account show

If the subscription isn't specified, shows the details of the default subscription.

az account show [--expanded-view]
[--subscription]

Optional Parameters

--expanded-view
Display more information like service principal's password and cloud environments.
--subscription
Name or ID of subscription.