33

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 deploy. I get the "Publish Windows Azure Application" screen that asks me to sign in. After I sign in, I get the message that I don't have a subscription:

"Sorry but we didn't find any Windows Azure Subscriptions associated with your account. You can sign in with a different account or sign up for a Windows Azure subscription".

Using a browser I can login in the Azure Portal with the same username/password. I can view my subscription, billing statments, etc.

When logging in I get a message to choose between "Organisational account" or "Microsoft account". It does not make a difference which I choose.

Wout
  • 855
  • 1
  • 6
  • 17

11 Answers11

71

I had the same issue, as other members said, it's a cache issue.

SOLUTION:

In visual studio, Top-right button with your credentials:

  • Click on account settings
  • In "All accounts" section, "Remove" all your accounts
  • In "Personalization Account", Sign out (EDIT:This step is no longer required)
  • Restart visual studio (EDIT: This step is no longer required)
  • Re-enter your credentials

Now your subscriptions should appear.

Ashallar
  • 890
  • 8
  • 15
15

So I stumbled upon this question and I had the latest Azure SDK (2.8.2 at this time) installed. My default directory and subscription would show up and not the other ones I had access to. I was using VS 2015 Enterprise. So clicking on the top right Corner on my account inside Visual Studio 2015 and clicking on "Account settings" took me here:

Apply Filter

I located the option "Apply Filter". This option only appears if your Visual Studio credentials are not stale. Otherwise, it says "Renenter your credentials" and only after that this option re-appears on the "Account Settings" inside Visual Studio 2015.

Click on the "Apply Filter" and a new form shows up as shown below:

Direcory Filter

Please note that it might take a while for Visual Studio to query and populate all the azure directories to which you have access to. Clicking the dropdown list a few times might help if you are eager enough. Select the directory you want to set as default. and Click the "Apply" button.

A window might appear asking you to re-enter your Microsoft Account credentials. Enter the Credentials and click signin to complete the process.

Re-enter your credentials

Visual Stdio might do some processing before the switch process completes as shown. Processing the Directory-switch operation

Once that is done, you are taken back to the form where you applied the filter. Now the filtered directory should be shown as below:

enter image description here

Close the form and restart Visual Studio. Hope that this helps.

Steve Johnson
  • 2,704
  • 5
  • 40
  • 67
  • 1
    this more or less worked for me. I basically removed my account from "All Accounts" and then readded it just to the Microsoft Account. Left the personalization blank. Works like a charm. That said, the azure tools basically show nothing useful lol. – Spets Aug 20 '16 at 07:19
  • This should be the accepted answer. – Dumber_Texan2 Jan 06 '21 at 21:36
9

After trying every solution in this question, I was still not seeing my subscription. My solution:

  1. Log into Azure subscription
  2. Create a new Web App
  3. Open the new Web App
  4. In the top menu select Get publish profile

GetPublishProfileButton

  1. Open the web app project in Visual Studio 2017 that you wish to publish
  2. Right click the Project in Solution Explorer, and select publish
  3. Scroll right to find Import Profile and select the file downloaded in step 4
  4. Click Publish

Now when I go into publish, the subsription is displayed, and all the connection information is saved.

Jenn
  • 798
  • 7
  • 15
  • The other answers didn't work for me either so I had to use this solution to publish to Azure. – John Mills Sep 19 '17 at 00:16
  • 1
    All the above answers didn't work for me either, but this one did. It's amazing how it's 2019 and this still doesn't work given how much MS is pushing Azure within VS. – Aaron Burke Jul 03 '19 at 21:13
  • I ended up using the Publishing Profile too in the end – kolexinfos Apr 30 '20 at 13:33
  • This should be voted up higher - I couldn't get anything above to work. While this doesn't technically solve the requested problem, it achieves the actual result I wanted. – yellow Oct 07 '20 at 16:43
  • @JasonD This may be too simplistic of an idea, but did you compile the web app project before trying to get publish profile? – Jenn May 13 '21 at 14:53
7

You found the solution to your problem. I had the same symptom, but the solution was another:

You need to go to Extensions and Updates and then update the Microsoft Azure SDK 2.8. After that, I could login and see the subscription (for my case it was a DreamSpark subscription)

This following site, which is about free Azure for DreamSpark (students), actually says that Visual Studio 2013 is not supported, only VS 2015 Community, but it works for me - if I update the Azure SDK as written above. http://blogs.msdn.com/b/microsoft_student_developer_blog/archive/2015/04/09/using-microsoft-azure-for-students.aspx

Microsoft Azure SDK 2.8 (if you cannot find it in Extensions and Updates some time from now): https://azure.microsoft.com/en-us/blog/announcing-the-azure-sdk-2-7-for-net/

SvendK
  • 432
  • 3
  • 13
5

All methods here did not work for me. What did finaly do the trick was connecting through Server Explorer tab.

GilShalit
  • 5,364
  • 8
  • 37
  • 54
  • 3
    This answer worked for me...some more details: From the Server Explorer tab, right click on the Azure item > click 'Connect To Microsoft Azure Subscription' > Log in again, and boom, it shows my subscriptions now. – Matthew Hilgenfeld Feb 02 '17 at 23:10
3

Some caching issue between the different Azure and SPOnline account that I'm using.

To solve: I logged out from all my Azure and SharePoint Online sites. Cleared my browser cache. Restarted the browser and login with the desired Azure account. After this Visual Studio found the Azure subscriptions again..

Wout
  • 855
  • 1
  • 6
  • 17
1

For me I was having trouble with my Gov Cloud account, and I had to take the following steps to see my subscription (even though without this it would still let me sign in, but no subscriptions would ever be linked).

  1. Tools\Options\Environment\Accounts
  2. Add a Registered Azure Cloud
  3. Sign out of all accounts, and sign back in using your Gov Cloud credentials.

enter image description here

Brien Foss
  • 2,950
  • 3
  • 16
  • 29
  • 1
    I'm in the same boat as you but your solution doesn't work for me. – Frank Hale Feb 27 '20 at 19:22
  • 1
    It appeared not to work for we as well, however, I just needed to remove, and re-add the US Gov account in VS. Then, I was able to see the subscriptions. – joelMendoza Nov 25 '20 at 19:00
1

Finally I'm logged in. It took 3 hours and going through all of the solutions proposed above. What worked for me was:

  1. Logout from your O365 account in VS and close it.
  2. Clear browser cache and re-start the browser and login to your Azure sub.
  3. Fire up VS and login to your account from upper right hand corner.
  4. Log in from server explorer, ie. re-enter your credentials.
  5. Open up the cloud explorer and refresh. Voilá, it's rockin' again!

One of the reasons it took so awfully long to try all the tricks was that I have a a few of Azure subs from different customers with 2-factor authentication on.

squareskittles
  • 11,997
  • 7
  • 31
  • 48
Marko OK
  • 23
  • 4
1

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

Andy
  • 7,298
  • 8
  • 54
  • 77
0

In my case, I just had to log in to VS using the sign in button in the upper-right corner. Attempting to log in to Azure via the Cloud Explorer window while not being signed in to VS itself will apparently yield the "No subscriptions found" message.

Anders
  • 1,361
  • 3
  • 14
  • 20
0

Nothing worked for me until I double check: https://manage.visualstudio.com/Subscribers The subscription was not really assigned to me even when VS recognized my login.

Carlos Toledo
  • 1,914
  • 17
  • 22