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

Cannot load resources when using account with access to multiple tenants #834

Open
Agazoth opened this issue Mar 28, 2024 · 7 comments
Open
Labels

Comments

@Agazoth
Copy link

Agazoth commented Mar 28, 2024

I use my azure account to log in to my main tenant. I use the same account to log on to another tenant, where my account is invited as guest account and made member.

Resources are never displaying:
image

When I connect to my main tenant, Logic Apps and Integration Accounts load by selected subscription as expected. But refreshing the Resources generates this toast:
image

It seems like others have a similar issue depending on the issues logged here: https://github.com/microsoft/vscode-azureresourcegroups/issues

I post here, because I think this is a a more general issue and not necessarily only related to Resource Groups.

Version: 0.8.4
OS: win32
OS Release: 10.0.22621
Product: Visual Studio Code
Product Version: 1.87.1
Language: en

@Agazoth
Copy link
Author

Agazoth commented Mar 28, 2024

Or actually it might be more like this one: microsoft/vscode-azure-account#160

@alexweininger alexweininger transferred this issue from microsoft/vscode-node-azure-pack Mar 28, 2024
@alexweininger
Copy link
Member

Hi, have you tried using the "Azure: Sign in to Directory..." command? This new command allows you to sign into additional tenants. This may fix your issue.

@Agazoth
Copy link
Author

Agazoth commented Apr 3, 2024

Just tried that - unfortunately that does not solve my issue.

First time I tried, I was able to select the proper tenant (pasted the tenant guid in the search bar when it was still iterating over the tenants), but only subscriptions from the other tenant was listed in the resource view.

Signed out and restarted vscode and tried again. Now the tenant I want to log on to is not listed in the Azure: Sign in to Directore ... command

@alexweininger
Copy link
Member

alexweininger commented Apr 10, 2024

Signed out and restarted vscode and tried again. Now the tenant I want to log on to is not listed in the Azure: Sign in to Directore ... command

if a tenant isn't listed there, it means it's signed in.

Did you sign out like so?

image

Also, double check that you don't have any subscripton/tenant filters preventing it from being displayed. The setting id is azure.resourceFilter

@Agazoth
Copy link
Author

Agazoth commented Apr 12, 2024

I did sign out there, and I clened out my azure.resource filter completely - several times.

Logic apps and integration accounts have no problems finding a subscription:
image

But clicking the reefresh button on resources generates an error:

image

@alexweininger
Copy link
Member

We're aware of that error but currently have no fixes except to reload VS Code and try again.

@AzCode-Bot
Copy link
Collaborator

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@AzCode-Bot AzCode-Bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
@alexweininger alexweininger removed the info-needed See https://aka.ms/azcodeissuereporting label May 31, 2024
@alexweininger alexweininger reopened this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants