Visual Studio not finding my Azure subscriptions

心不动则不痛 提交于 2019-11-28 10:43:07

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.

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:

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:

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.

Visual Stdio might do some processing before the switch process completes as shown.

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:

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

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/

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

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

  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.

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!