Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

  • Emptied my browser caches, history, cookies etc.
  • Removed my account from Visual Studio, restarted, and added them again.
  • Formatted my computer and reinstalled everything (not really because of this problem, but the timing was perfect).
  • Updated the Azure SDK to the newest 2.9.5.

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.

like image 720
MartinJH Avatar asked Sep 26 '16 08:09

MartinJH


3 Answers

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.

like image 56
apr Avatar answered Nov 08 '22 01:11

apr


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.

like image 30
Benjamin Grosse Avatar answered Nov 08 '22 00:11

Benjamin Grosse


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

like image 34
Chris Aelbrecht Avatar answered Nov 07 '22 23:11

Chris Aelbrecht