Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying multiple azure tenants requires logging in to each #160

Open
JohannesRudolph opened this issue Jun 30, 2022 · 0 comments
Open

Querying multiple azure tenants requires logging in to each #160

JohannesRudolph opened this issue Jun 30, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JohannesRudolph
Copy link
Member

Describe the bug
When reading tenant data from multiple Azure AAD tenants, I have to manually az login -t ... into each before running collie, else I will receive an empty tenant list

Reach of the bug
Everyone using more than one azure tenant with collie.

Impact of the bug
Incorrect behavior.

To Reproduce
Steps to reproduce the behavior:

  1. collie tenant list meshcloud-dev --platform azure.meshcloud-azure-dev
  2. collie tenant list meshcloud-prod --platform azure.meshcloud-azure-prod

Observe that the second command returns no tenants

No objects to list
Queried from cloud - azure.meshcloud-azure-prod: 2.564s.

Expected behavior
Both tenant lists show the subscriptions in each respective tenant

Implementation Hints

It may have been introduced with the changes around enabling the collie tenant tree command.
I think before we used az account list which worked cross AAD Tenant even when az login is logged into the wrong tenant.

@JohannesRudolph JohannesRudolph added the bug Something isn't working label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants