VS Code Azure Account Extension asking to Select Subscription

Viewed 2059

My VS Code Azure Account Extension is asking me to "Select my Subcription" . When i click on Select subscription it pops a message on the right bottom corner saying "No subscriptions were found , setup your account at https://azure.microsoft.com/en-us/free". Even though i click on the link and login, still it doesn't show my PAYG subscription. Same thing is with the Storage Account Extension. Any idea why Azure cannot find the subcription. I am logged in to Azure with my PAYG subscription and i can display all resources in the Powershell Integrated Console inside VS Studio. I tried logging out and logging to Azure, multiple times, restarted VS Code, still the same

3 Answers

I had the same issue as you described. What worked for me was to hit CMD + SHIFT + P (CTRL + SHIFT + P) and then search for 'Azure Sign In'. A browser window should show up, asking you to sign in. Then suddenly your Microsoft Azure Account Extension should work again.

Had the same problem. I suspect having logged in before with a free subscription somehow messes things up. Was able to get past it by using command Azure: Sign In to Azure Cloud

I had the same issue with VS Studio Code and my Subscription, following another post I initially created a Web App in a resource group via the Portal. Logged out and re-logged in and saw no difference. Saw neither the resources of web app created or subscription in Visual Studio Code

Then I went to View->Command Palette then did an Azure Sign in (even though it said I was signed in) then Azure Select Subscription, with this I suddenly saw my subscription, which I selected.

Then I saw the resource group I had created and also my subscription was available to use in VS Studio Code.

Related