Visual Studio not finding my Azure subscriptions

前端 未结 11 1163
借酒劲吻你
借酒劲吻你 2020-12-09 15:14

I have a working Azure account with various services already running. I receive monthly bills for these.

Now, I created a workerrole in Visual Studio that I want to

11条回答
  •  甜味超标
    2020-12-09 15:46

    I realise VS Code isn't the same as Visual Studio, but this question comes up first when searching for Visual Studio Code so I thought I'd post my findings here.

    I had the same symptoms with VS Code on Ubuntu and I think it's to do with the 2FA that Azure uses (i.e. when it sends you an SMS to verify).

    What happened was that VS Code fired up the default browser for me to log in, I put in my username and password and the screen said "you can now close this window" but it never prompted for 2FA. After that, VS Code always said "you have no subscriptions".

    How I fixed it was:

    1. sign out of Azure from inside VS Code (use control-shift-p and search for "Azure: sign out"

    2. Open up the web browser manually and sign in properly using 2FA

    3. go back to VS Code and sign in again

提交回复
热议问题