Visual Studio not finding my Azure subscriptions

2019-01-18 18:05发布

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.

7条回答
Animai°情兽
2楼-- · 2019-01-18 18:39

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..

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-01-18 18:41

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.

查看更多
Lonely孤独者°
4楼-- · 2019-01-18 18:44

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.

查看更多
放我归山
5楼-- · 2019-01-18 18:51

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/

查看更多
放我归山
6楼-- · 2019-01-18 18:55

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

查看更多
虎瘦雄心在
7楼-- · 2019-01-18 18:56

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.

查看更多
登录 后发表回答