az login

Description

Log in to Azure.

Command
az login
Examples
Log in interactively
az login
Log in with a service principal
az login --service-principal -u <app-id> -p <password-or-cert> --tenant <tenant>
Parameters
Parameter Type Required Description
--use-device-code string No Use device code authentication.
--service-principal string No Log in with a service principal.
-u, --username <ID> string No User name, service principal name, or managed service identity name.
-p, --password <Password> string No Credentials.
Command Info
Category: Configuration
Type: Azure
Views: 14
Status: Active
Tags
azure cli login auth account