vscode-azureresourcegroups icon indicating copy to clipboard operation
vscode-azureresourcegroups copied to clipboard

Cannot load resources when using account with access to multiple tenants

Open Agazoth opened this issue 1 year ago • 7 comments
trafficstars

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 avatar Mar 28 '24 06:03 Agazoth

Or actually it might be more like this one: https://github.com/microsoft/vscode-azure-account/issues/160

Agazoth avatar Mar 28 '24 06:03 Agazoth

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.

alexweininger avatar Apr 03 '24 17:04 alexweininger

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

Agazoth avatar Apr 03 '24 18:04 Agazoth

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

alexweininger avatar Apr 10 '24 18:04 alexweininger

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

Agazoth avatar Apr 12 '24 10:04 Agazoth

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

alexweininger avatar May 16 '24 05:05 alexweininger

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 avatar May 31 '24 05:05 AzCode-Bot