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

VSCode Azure Workspace never switch between Tenant #67

Open
oxsmose opened this issue Dec 12, 2023 · 4 comments
Open

VSCode Azure Workspace never switch between Tenant #67

oxsmose opened this issue Dec 12, 2023 · 4 comments

Comments

@oxsmose
Copy link

oxsmose commented Dec 12, 2023

I try to switch my workspace to another Tenant / Subscription however nothing happen.

I can see subscription in command list but nothing happen, the list of subscription does not change to the new one.

I use MSAL on Azure Extension, I tried to force Tenant Id in extension, I tried to log off and log in again. Nothing happen.

image

@alexweininger
Copy link
Member

alexweininger commented Dec 12, 2023

Make sure you are using the "Azure: Select Subscriptions..." command, and not the "Azure: Select Subscriptions" command. The second one is contributed by the Azure Account extension which is no longer used by the Azure Resources extension.
image

We know this is confusing and we're working to remove these old commands.

@oxsmose
Copy link
Author

oxsmose commented Dec 12, 2023

This command gives me indeed my current subscriptions but not from the Tenant I am trying to reach.

I try ; > Azure Select Tenant then select the Tenant I want to switch. Nothing change.

image

@michaelschwartzman20
Copy link

I have the same problem i can't login into the correct tenant, it just defaults to a single tenant and doesn't give me the option to select the correct tenant when authenticating.

@alexweininger
Copy link
Member

alexweininger commented Nov 26, 2024

We are actively working on adding an Accounts & Tenants view to fix this issue. microsoft/vscode-azureresourcegroups#869

In the meantime, you can try using the "Azure: Sign in to Directory..." command to sign into a specific tenant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants