microsoft / msopentech-tools-for-intellij

Plugin for easy and fast development to enable developers of Android Apps to connect to Office 365 services and Azure Mobile Services, and developers of Java middleware to connect to Azure compute services
Apache License 2.0
28 stars 34 forks source link

Create mobile service returning Exceeded quota error when no servers exist #221

Closed DonGlo closed 9 years ago

DonGlo commented 9 years ago

I tried to create a mobile service an "Error creating the service" dialog. Showing advanced info shows the error to be: Cannot move or create server. Subscription '789bd9c7-7b03-463c-8a54-74a6ad134e35' will exceed server quota.

I currently have no Mobile services or SQL databases in the subscription.

2015-03-09_10-17-29

BeatriceOltean commented 9 years ago

This maybe an issue with creation of the free DB. The mobile service cannot be created without the free DB. Is the subscription shared among multiple users?

If you can create it from the portal and you do not get the exception then the bug is in the plugin.

DonGlo commented 9 years ago

Ok, Now I understand what is going on. The dialog says create a database.

Under the covers it is creating a NEW server to put it on even if you have existing servers that have 2015-03-20_12-44-14 no databases on them. There is a disconnect between the UI dialog and the error that is generated. So, I had 5 servers that had been created when I ran the tool on previous occasions. I deleted the mobile service and the databases each time, but the servers were not deleted at that time. Then came the point that I had 5 servers left over, and NO databases. Servers don’t show until you dig down in the Azure UI. There needs to be a better statement in the UI as to what is happening and/or error returned so that is clearer what the issue is.

leotilli commented 9 years ago

The same behavior happens in VS.

image

We'll be changing the popup message to suggest reading the advanced info.

DonGlo commented 9 years ago

Do we have enough info to do better than that? I would argue that we are potentially dealing with an audience that that is not as familiar with the Microsoft ecosystem. If we have definitive error information we can provide, is there are reason not to do so?

BeatriceOltean commented 9 years ago

There is no metadata in the XML that we receive from Azure VM API.