LinuxCommandLibrary

az-account

Manage Azure subscription information.

TLDR

Print a list of subscriptions for the logged in account

$ az account list
copy


Set a subscription to be the currently active subscription
$ az account set --subscription [subscription_id]
copy


List supported regions for the currently active subscription
$ az account list-locations
copy


Print an access token to be used with MS Graph API
$ az account get-access-token --resource-type [ms-graph]
copy


Print details of the currently active subscription in a specific format
$ az account show --output [json|tsv|table|yaml]
copy

Copied to clipboard