mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 11:43:31 +00:00
31 lines
790 B
Plaintext
31 lines
790 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# az account
|
|
|
|
> Manage Azure subscription information.
|
|
> Part of `azure-cli` (also known as `az`).
|
|
> More information: <https://learn.microsoft.com/cli/azure/account>.
|
|
|
|
- List all 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}}`
|