Difference between revisions of "Az login"
Jump to navigation
Jump to search
(5 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 -u [email protected] -p VerySecret | ||
az login [[--service-principal]] | az login [[--service-principal]] | ||
+ | |||
+ | [[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 == | == Related == | ||
+ | * <code>[[az account list]]</code> | ||
* [[Terraform Azure provider]] | * [[Terraform Azure provider]] | ||
− | + | * <code>[[aws configure]]</code> | |
== See also == | == See also == |
Revision as of 06:40, 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 -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
See also
Advertising: