Difference between revisions of "Az login"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
 
  az login [[--service-principal]]  
 
  az login [[--service-principal]]  
 +
 +
 +
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)
 +
  
  

Revision as of 06:28, 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
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: