az-login Verified for current stable LTS

Az Login Command: Service Principal Login With Client Certificate

Use for service principal login with client certificate with Az Login. Exact CLI syntax to service principal login with client certificate using Az Login.

When to use this: Use for service principal login with client certificate with Az Login.

Command Syntax

az login --service-principal -u {http://azure-cli-service-principal} -p <path/to/cert.pem> -t <someone.onmicrosoft.com>

Command Breakdown

--service-principal
Command Option
Tool-specific option used by this command invocation.
-u
Command Option
Tool-specific option used by this command invocation.
-p
Command Option
Tool-specific option used by this command invocation.
-t
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to service principal login with client certificate using Az Login.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Az Login directory