Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az-account: add page #6204

Merged
merged 12 commits into from
Jul 18, 2021
24 changes: 24 additions & 0 deletions pages/common/az-account.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# az account

> Manage Azure subscription information.
mfrw marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://docs.microsoft.com/cli/azure/account>.

- Get a list of subscriptions for the logged in account:
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`az account list`

- Set a `subscription` to be the current active subscription:
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`az account set --subscription {{00000000-0000-0000-0000-000000000000}}`
mfrw marked this conversation as resolved.
Show resolved Hide resolved

- List supported regions for the current active subscription:
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`az account list-locations`

- Get an access token to use with `MS Graph API`:
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`az account get-access-token --resource-type {{ms-graph}}`

- Get details of current active subscription in `json` format:
mfrw marked this conversation as resolved.
Show resolved Hide resolved

`az account show --output json`
mfrw marked this conversation as resolved.
Show resolved Hide resolved