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条回答
够拽才男人
2楼-- · 2019-01-18 19:05

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.

查看更多
登录 后发表回答