Reputation: 1239
I am trying to understand the default behavior of "az login" command. Suppose I have freshly installed Azure CLI and am doing a login for the first time using the command - az login Now say I belong to multiple tenants, which tenant will I get logged in to?
I am aware that using the --tenantId argument I can specify a tenant, but I'm trying to understand the default behavior
Thanks in advance!
Upvotes: 1
Views: 2735
Reputation: 1746
If you have multiple tenant associated, and didn't run az login --tenant tenant_id
If you run Kusto Query, most likely you won't get the resource, because the right subscription will likely not attach to it.
Upvotes: 0
Reputation: 1
The default behavior of using just the az login would authenticate and list all the available tenant associated with the user in a list.
Upvotes: 0