Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Azure Account Extension asking to Select Subscription

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

like image 668
Pallab Avatar asked Sep 02 '20 11:09

Pallab


People also ask

How do I change my Azure subscription to pay-as-you-go?

Sign in to the Azure portal. Navigate to Subscriptions and then select your pay-as-you-go subscription. At the top of the page, select Switch Offer. The option is only available if you have a pay-as-you-go subscription and have completed your first billing period.

How do I sign in to VS Code with azure account?

A common Sign-In and Subscription management extension for VS Code. Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter. Azure Account and Sign-In. The Azure Account extension provides a single Azure sign-in and subscription filtering experience for all other Azure extensions.

What is Azure account in Visual Studio?

Azure Account - Visual Studio Marketplace Azure Account and Sign-In The Azure Account extension provides a single Azure sign-in and subscription filtering experience for all other Azure extensions. It makes Azure's Cloud Shell service available in VS Code's integrated terminal.

How do I get Started with Azure subscriptions?

Pick the set of subscriptions you want to work with. Extensions should respect this list and only show resources within the filtered subscriptions. If you don't have an Azure Account, you can sign up for one today and receive $200 in free credits. Open a new terminal running Bash in Cloud Shell.

What is the Azure account extension?

The Azure Account extension provides a single Azure sign-in and subscription filtering experience for all other Azure extensions. It makes Azure's Cloud Shell service available in VS Code's integrated terminal.


2 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.

like image 133
skydeveloper Avatar answered Sep 22 '22 04:09

skydeveloper


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

like image 32
BHANG Avatar answered Sep 21 '22 04:09

BHANG