CmdID

CmdID / az

az login

Log in to Azure. Azure CLI reference

17 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

17 in the Azure CLI reference
--allow-no-subscriptionsSupport accessing tenants without subscriptions.
--certificatePEM file with key and public certificate.
--claims-challengeBase64-encoded claims challenge requested by a resource API in the WWW-Authenticate header.
--client-idClient ID of the user-assigned managed identity
--federated-tokenFederated token that can be used for OIDC token exchange.
--identity, -iLog in using managed identity
--object-idObject ID of the user-assigned managed identity
--password, -pUser password or service principal secret.
--resource-idResource ID of the user-assigned managed identity
--scopeUsed in the /authorize request.
--service-principalLog in with a service principal.
--skip-subscription-discovery, --skip-subSkip the subscription discovery process during login.
--subscription, -sSubscription ID or name to set as the default.
--tenant, -tThe Microsoft Entra tenant, must be provided when using a service principal.
--use-cert-sn-issuerUse Subject Name + Issuer (SN+I) authentication in order to support automatic certificate rolls.
--use-device-codeUse device code flow.
--username, -uUser name or service principal client ID.