Phil Lachmann
Phil Lachmann

Reputation: 231

Azure Functions in VS Code Plugin doesn't find subscriptions

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?

Upvotes: 4

Views: 3855

Answers (3)

Thaddeus Jiang
Thaddeus Jiang

Reputation: 172

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

enter image description here

Upvotes: 1

dduque
dduque

Reputation: 414

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

Upvotes: 5

Joey Cai
Joey Cai

Reputation: 20067

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.

Upvotes: 0

Related Questions