question

LeoliuLiu-2478 avatar image
0 Votes"
LeoliuLiu-2478 asked sebasmoreno14-8042 answered

Azure free trial subscription not found in VS Code

When trying to deploy a bootleg web app in VS Code, the application prompts the following notification "No subscriptions were found. Set up your account at https://azure.microsoft.com/en-us/free/."

Despite the fact that I checked 100000 times in Azure portal to make sure my free trials subscription is still in effect, and that my Visual Studio still shows that I have one active subscription, VS Code does not seem to care, this has been bugging me for a while now, please help.

azure-webapps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LeoliuLiu-2478 Which VS Code extension are you using to deploy your web app to Azure? Do you have the Azure App Service Extension installed? Have you added/signed-in to your Azure account from within VS Code? Here is a quickstart to deploy a Node.js application to Azure App Service using the App Service extension: https://docs.microsoft.com/en-us/azure/developer/javascript/tutorial-vscode-azure-app-service-node-01?tabs=bash


0 Votes 0 ·

LeoliuLiu-2478 Just checking in to see if you've had a chance to look at the shared resources. Please share the requested information so we can assist you better!

0 Votes 0 ·
KentTaylor-5707 avatar image
2 Votes"
KentTaylor-5707 answered JohnStaveley-9556 commented

I found a solution that worked for me here.

VSCode seems to have an issue finding subscriptions that are empty. Try these steps:

  1. Create Resource Group and deploy a free tier web app.

  2. Sign out of Azure in VScode. Restart VSCode.

  3. Sign back in to Azure App Service in VSCode. The subscription should be visible.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yeahhhh Thanks pal

0 Votes 0 ·

I have the same problem with the same error message. I have several resource groups defined in my subscription. I have signed out of VScode and signed back in again. I have restarted VS Code. Nothing you have suggested fixes the problem.

0 Votes 0 ·
sebasmoreno14-8042 avatar image
2 Votes"
sebasmoreno14-8042 answered

The following works for me:

When I logged in for the first time to my azure account visual studio code opened Edge.

So I had to:

  1. Sign out Azure Acount: Go to View - Command Palette and search Azure: Sign Out

  2. Sign in again and when the vs code open in Edge I copied the url and pasted it in Chrome

With this I could select my subscription.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.