Azure Functions in VS Code Plugin doesn't find subscriptions

Viewed 2259

I'm developing an azure function in VS Code. I have the Azure Functions extension installed.

I have created the function and its running locally just fine.

But when I sign in to azure using the extension it does not see any of my Azure subscriptions. Therefore I can't select a subscription and deploy the function.

Has anyone else encountered this and found a workaround?

3 Answers

I had the same problem and I was able to sign in by clearing the azure tenant id in the azure extension settings for VS Code

You can try to the following ways to troubleshoot.

1.Go to azure portal and login your account to check if the account has active subscription listed.

2.In VS code, try to sign out and sign in again.

3.Use the below script with azure cli to login your account

az login --debug

4.If you have set MFA for your account, re-open the browser and re-login to the portal, which triggered the wizard for me to configure all needed for MFA authentication. After that, az login works again.

Move your mouse to there, you will see a filter icon. Click it, then you will find all subscriptions.

enter image description here

Related