az-account
Manage Azure subscriptions and access tokens
TLDR
List all subscriptions for the logged-in account
SYNOPSIS
az account subcommand [options]
DESCRIPTION
az account manages Azure subscription information and access tokens. It allows you to list, select, and manage subscriptions associated with your Azure account, as well as obtain access tokens for programmatic access to Azure resources.
This command group is essential for working with multiple Azure subscriptions and switching between them during CLI sessions.
PARAMETERS
--subscription value
Name or ID of the subscription to use--resource-type value
Type of resource for access token (aad-graph, arm, ms-graph, etc.)--scope value
Space-separated scopes for the access token--tenant value
Tenant ID for cross-tenant token requests
SUBCOMMANDS
Subscription Management
list, show, set, clear, list-locationsAccess Tokens
get-access-tokenManagement Groups
management-group create, management-group delete, management-group list, management-group show, management-group updateLocks
lock create, lock delete, lock list, lock show, lock updateAliases (Extension)
alias create, alias delete, alias list, alias showSubscriptions (Extension)
subscription list, subscription show
CAVEATS
Access tokens are valid for a minimum of 5 minutes up to a maximum of 60 minutes. The expires_on field in token output is a POSIX timestamp (UTC), while expiresOn is local datetime. Starting in September 2025, Microsoft requires MFA for user identities; scripts should migrate to service principals or managed identities.
