diff --git a/pages/common/az-account.md b/pages/common/az-account.md new file mode 100644 index 000000000..194d74419 --- /dev/null +++ b/pages/common/az-account.md @@ -0,0 +1,25 @@ +# az account + +> Manage Azure subscription information. +> Part of `az`, the command-line client for Microsoft Azure. +> More information: . + +- Print a list of subscriptions for the logged in account: + +`az account list` + +- Set a `subscription` to be the currently active subscription: + +`az account set --subscription {{subscription_id}}` + +- List supported regions for the currently active subscription: + +`az account list-locations` + +- Print an access token to be used with `MS Graph API`: + +`az account get-access-token --resource-type {{ms-graph}}` + +- Print details of the currently active subscription in a specific format: + +`az account show --output {{json|tsv|table|yaml}}`