Difference between revisions of "Az login"
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | <code>[[az login]]</code> [https://learn.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest#az-login doc] opens a d browser-based login. | ||
+ | az login -u [email protected] -p VerySecret | ||
+ | az login [[--service-principal]] | ||
+ | az login --service-principal -u "CLIENT_ID" -p "CLIENT_SECRET" --tenant "TENANT_ID" | ||
+ | |||
+ | [[az login -t]] | ||
+ | |||
+ | |||
+ | az login | ||
+ | A web browser has been opened at https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web | ||
+ | browser is available or if the web browser fails to open, use device code flow with `[[az login --use-device-code]]`. | ||
+ | |||
+ | Retrieving tenants and subscriptions for the selection... | ||
+ | |||
+ | [Tenant and subscription selection] | ||
+ | |||
+ | No Subscription name Subscription ID Tenant | ||
+ | ----- -------------------- ------------------------------------ ----------------- | ||
+ | [1] * Azure subscription 1 xxxxxxxxxxxxxxxxxx1 Default Directory | ||
+ | |||
+ | The default is marked with an *; the default tenant is 'Default Directory' and subscription is '[[Azure subscription]] 1' (xxxxxxxxxxxxxxxxxx1). | ||
+ | |||
+ | Select a subscription and [[tenant]] (Type a number or Enter for no changes) | ||
+ | |||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[az account list]]</code> | ||
* [[Terraform Azure provider]] | * [[Terraform Azure provider]] | ||
− | + | * <code>[[aws configure]]</code> | |
+ | * [[az acr login]] | ||
== See also == | == See also == | ||
* {{az}} | * {{az}} | ||
+ | |||
+ | [[Category:Azure]] |
Latest revision as of 18:52, 16 July 2024
az login
doc opens a d browser-based login.
az login -u [email protected] -p VerySecret
az login --service-principal
az login --service-principal -u "CLIENT_ID" -p "CLIENT_SECRET" --tenant "TENANT_ID"
az login -t
az login A web browser has been opened at https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow with `az login --use-device-code`. Retrieving tenants and subscriptions for the selection... [Tenant and subscription selection] No Subscription name Subscription ID Tenant ----- -------------------- ------------------------------------ ----------------- [1] * Azure subscription 1 xxxxxxxxxxxxxxxxxx1 Default Directory The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (xxxxxxxxxxxxxxxxxx1). Select a subscription and tenant (Type a number or Enter for no changes)
Related[edit]
See also[edit]
Advertising: