MartinJH
MartinJH

Reputation: 2609

This account has no subscription - Publishing to Azure from Visual Studio

Earlier this year I successfully deployed a MVC app to Azure from Visual Studio.

Now I'm trying to do the same thing again, but now I am told my azure account "has no subscription".

enter image description here

However I am 100% positive I do have a subscription associated with my email. My old MVC app still runs and I can see my Pay-as-you-go is properly charged.

enter image description here

What I Have tried to fix it

I did the following things above based on advice from these pages:

Visual Studio not finding my Azure subscriptions

Unable to publish to Azure with VS2015

No subscription found in windows azure account

But alas, no luck.

The only thing that comes to thought is I tried to add an Azure Pass to my account, but without luck. But I can't see how that should change anything...

So my question is: How do I make Visual Studio recognize my current Pay-as-you-go subscription, so I can publish my services, apps, etc. from Visual Studio directly?

Or at least: What has gone wrong? Whom can I contact to get help with this?

As always, thank you for your time and patience, and please write a comment if you need further information.

Upvotes: 7

Views: 4892

Answers (3)

Benjamin Grosse
Benjamin Grosse

Reputation: 51

In my case, the solution was as follows:

Open Server Explorer in Visual Studio, right-click on Azure and select "Manage and filter subscriptions":

Screenshot of Manage Subscriptions Dialog

Click the Certificates tab, click Import, then click Download subscription file. This will take you to the azure portal page where you can download a .publishsettings file for your subscription. After downloading that file, click the Browse button in the Import dialog shown above and select that file.

Upvotes: 5

Chris Aelbrecht
Chris Aelbrecht

Reputation: 2091

I had the same issue. To solve it I opened the server explorer (ctrl+alt+s) and refreshed the Azure connection. It still said 0 subscriptions, but in the publishing options I could connect without any issue.

enter image description here

Upvotes: 3

apr
apr

Reputation: 552

You may try to connect first via the server explorer (ctrl+alt+s). (The server explorer has an azure root node, if the azure sdk installed)

If you have connected, the publish wizard won't ask (usually) for sign in again.

Upvotes: 6

Related Questions