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
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:
sign out of Azure from inside VS Code (use control-shift-p and search for "Azure: sign out"
Open up the web browser manually and sign in properly using 2FA
go back to VS Code and sign in again