user3740951
user3740951

Reputation: 1239

"az login" signs you in to which tenant?

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

Answers (2)

BlueJapan
BlueJapan

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

Babajide Ojo
Babajide Ojo

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

Related Questions