8

I am having an issue while deploying an Azure web role to a cloud service. It shows me the error

Cloud services are not available in this subscription.

I am using a pay as you go subscription on Azure. I don't know if there is any limitation with this subscription for cloud service deployment or not.

Error Details.

Martin Liversage
  • 104,481
  • 22
  • 209
  • 256
Krishna_K_Batham
  • 310
  • 1
  • 4
  • 10
  • Did you try create your cloud services from portal and then, publish to it through VS? – Thiago Custodio Mar 29 '16 at 16:56
  • Yes, I have done the same thing. First create cloud service on azure portal.Then trying to deploy code using VS 2015. This issue is generate when I am deploying code form VS. – Krishna_K_Batham Mar 30 '16 at 06:16

3 Answers3

10

Updated version of JerryGoyal's solution.

Cloud Service Management will have to be done using the new Azure Portal, because Cloud Service Management in the old portal will be disabled as of 11/15/2017.

ChasetopherB
  • 466
  • 9
  • 23
5

I think the issue you're running into is that the Cloud Service Publish Wizard in VS only supports subscriptions in which you are an admin or co-admin granted via via the old portal (manage.windowsazure.com). If you've been given access via RBAC or the new portal, then VS will not see the resources under those subscriptions.

To work around it, you can build the package using msbuild.exe and then upload it via the portal.

That help?

bmoore-msft
  • 8,376
  • 20
  • 22
  • 2
    I have got a solution from Microsoft tech support that work for me.They suggest me to add as coadmin. Once I have added as coadmin .Then it's work for me. – Krishna_K_Batham Apr 05 '16 at 11:10
  • @bmoore-msft Is there a link to vote for the feature for Cloud Services to follow RBAC? – user959729 Apr 06 '16 at 00:49
  • I took a look at a couple different groups and didn't find one - you could start one here: https://feedback.azure.com/forums/170031-sdk-and-tools – bmoore-msft Apr 07 '16 at 21:42
4

Cloud services are not available in this subscription

The error is caused because the Cloud Services still use the old deployment model that is based on Azure Service Management (ASM).
To deploy an ASM based component to Azure you need to be ‘co-admin’ for the subscription.

Right now you are ‘Owner’ on the new portal but this role only has impact on the new ARM based resources.

So, just ask your subscription admin to login to the old portal (https://manage.windowsazure.com) and make you co-administrator:

  • Login to the old portal
  • Click on Settings –> Administrators
  • Click on the Add button at the bottom
  • Enter the co-admin email address and click on the OK button.

After this reload your Visual Studio and the problem will be solved.

GorvGoyl
  • 42,508
  • 29
  • 229
  • 225