Retrieving list of tenants using Get-AzTenant when using a serviceprincipal #24730
Labels
customer-reported
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
When logging in interactively Get-AzTenant returns a list of tenants to which the respective logon has access (although it may not currently be logged into the other tenants). When doing the same when connected using a service principal with the same permissions and list of tenants to which it is a member it only returns the current tenant connected with. If you connect to a number of tenants using the service principal you still only see a single tenant when calling Get-AzTenant.
I'm not 100% sure if this is a bug, so am asking this as a question as to how you can retrieve the list of tenants?
Script or Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: