Azure free trial subscription not found in VS Code

Leoliu Liu 6 Reputation points
2020-08-03T03:00:01.38+00:00

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Juan Sebastian Moreno Restrepo 26 Reputation points
    2021-12-30T21:36:25.15+00:00

    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 people found this answer helpful.

  2. Kent Taylor 11 Reputation points
    2020-12-14T18:48:33.357+00:00

    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 people found this answer helpful.