CmdID / az / az account
az account get-access-token
Get a token for utilities to access Azure. Azure CLI reference
4 options Its page in the Azure CLI reference
Options
--resource-typeType of well-known resource.--resourceAzure resource endpoints in Microsoft Entra v1.0.--scopeSpace-separated scopes in Microsoft Entra v2.0.--tenant, -tTenant ID for which the token is acquired.