az account

Manage Azure subscription information.

Commands

az account clear Clear all subscriptions from the CLI's local cache.
az account get-access-token Get a token for utlilities to access Azure.
az account list Get a list of subscriptions for the logged in account.
az account list-locations List supported regions for the current subscription.
az account set Set a subscription to be the current active subscription.
az account show Get the details of a subscription.

az account clear

Clear all subscriptions from the CLI's local cache.

az account clear

az account get-access-token

Get a token for utlilities to access Azure.

az account get-access-token [--resource]
[--subscription]

Optional Parameters

--resource
Azure resource endpoints. Default to Azure Resource Manager Use 'az cloud show' command for other Azure resources.
--subscription -s
Name or ID of subscription.

az account list

Get a list of subscriptions for the logged in account.

az account list [--all]
[--refresh]

Optional Parameters

--all
List all subscriptions, rather just 'Enabled' ones.
--refresh
Retrieve up to date subscriptions from server.

az account list-locations

List supported regions for the current subscription.

az account list-locations

az account set

Set a subscription to be the current active subscription.

az account set --subscription

Required Parameters

--subscription -s
Name or ID of subscription.

az account show

Get the details of a subscription.

az account show [--sdk-auth]
[--subscription]

Optional Parameters

--sdk-auth
Output result in compatible with Azure SDK auth file.
--subscription -s
Name or ID of subscription.