microsoft / vscode-azureresourcegroups

VS Code extension for managing Azure resources.
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups
MIT License
52 stars 28 forks source link

Subscriptions not loading. Only showing "Select subcriptions..." in v0.8.0 #775

Closed oed-metzb closed 4 months ago

oed-metzb commented 10 months ago

Hello,

Since the update to v0.8.0, I no longer see any subscriptions in the extension under "Resources". Only the text "Select subscriptions..." appears. image

When I click on "Select subscriptions...", the bar at the top of the screen opens and does not offer me any objects. image

I have run "Azure: Sign In (azureResourceGroups.logIn)" several times. image

If I manually downgrade to v0.7.5, the subscriptions are displayed again. image

gluc commented 10 months ago

I have exactly the same. I tried various variations (with Device Code, with VSC Preview version, and more).

The only workaround I got to work: Downgrade to v0.7.5

https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-azuretools/vsextensions/vscode-azureresourcegroups/0.7.5/vspackage

nturinski commented 7 months ago

Sorry for the late response. Could you try the Azure: Sign in to Directory... command? You can access this command by first pressing F1 and then searching for the command.

oed-metzb commented 7 months ago

No problem, when i try to run (with v0.8.0 installed) Azure: Sing in to Directory...i only get a new prompt "Select Directory to Sign In To" image But i can't select anything or when i try to enter <tenant>.onmicrosoft.com i can`t proceed. I also tested the latest version v0.8.4, but the same result.

v0.7.5 is still my workaround to access the resources.

alexweininger commented 7 months ago

The "Sign in to Drectory..." command will list any directories (or tenants) that aren't already authenticated. In the screenshot it isn't showing you have any unauthenticated directories. Do you know if you have multiple directories (also called tenants) available to your account?

Are you working in the public Azure cloud or a sovereign cloud? We have a new setting you need to use if you are using a sovereign cloud.

My last suggestion is to try to reset or reinstall as much as you can. Log out of your browser and also out of VS Code. And maybe even reinstall the extension. I'm really sorry about this, our new authentication is supposed to fix subscriptions not showing up 😢.

aburgessPARS commented 7 months ago

Same issue. Using azure government US cloud. I did Azure: Sign in . Sign in to cloud. Nothing shows up with sign in to directory. When I select subscription it shows up in command palette but never makes it over to resources. image I am currently on Azure Resources v0.8.4

alexweininger commented 4 months ago

@aburgessPARS To connect to a sovereign cloud, set the microsoft-sovereign-cloud.environment setting to USGovernment.

image
alexweininger commented 4 months ago

@oed-metzb, are you also using a sovereign cloud?

AzCode-Bot commented 4 months ago

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!