Ricardo Giaviti Ricardo Giaviti - 7 months ago 46
SQL Question

Azure fails when try to create a MySQL database

When I try to create a MySQL database on Microsoft Azure using pure REST request (

PUT
) to:

https://management.azure.com/subscriptions/<subscriptionid>/resourceGroups
/resource-<id>/providers/successbricks.cleardb/databases/<my-database>?
api-version=2014-04-01


I am getting this error:

HTTP STATUS CODE 400 Bad Request



Error message: 'Legal terms have not been accepted for this item on
this subscription. To accept legal terms, please go to the Azure
portal (http://go.microsoft.com/fwlink/?LinkId=534873) and configure
programmatic deployment for the Marketplace item or create it there
for the first time'


So I went to Microsoft Azure Portal, and I accepted the legal terms. I tried again, same error. I searched in almost the entire Azure Portal for some configuration about this and I found nothing.

Someone have the same problem?

Thanks.

Answer

OK guys, found the solution. I don't know why, but if we change the JSON attribute { "plan.name": "Pay-As-You-Go" } to { "plan.name": "Free" } the database is created successfully.

I opened a support ticket to know which are the MySQL available plans. I will update the answer as soon as possible.

Comments