Question

Richard Shade on Fri, 28 Jul 2017 18:45:32


I have been following the steps outlined there to no avail. https://docs.microsoft.com/en-us/rest/api/postgresql/databases. Here is the http response details: 

HTTP Request Details:
Verb: PUT\n  
URI: /subscriptions/<hidden credential>/resourceGroups/testresourcegroup/providers/Microsoft.DBforPostgreSQL/servers/my-sql-server-973328003/databases/sample-database?api-version=2017-04-30-preview
Header:
Authorization: 
Content-Type: application/json
Body: {"location":"northcentralus","properties":{"charset":"UTF8","collation":"English_United States.1252"}}"

HTTP Response Details:
Code: 202
Header:
Azure-Asyncoperation: https://management.azure.com/subscriptions/<hidden credential>/providers/Microsoft.DBforPostgreSQL/locations/northcentralus/azureAsyncOperation/e86d0977-5036-46a2-b1a1-eae754cc5366?api-version=2017-04-30-preview
Cache-Control: no-cache
Content-Length: 81
Content-Type: application/json; charset=utf-8
Date: Fri, 28 Jul 2017 18:30:09 GMT
Expires: -1
Location: https://management.azure.com/subscriptions/<hidden credential>/providers/Microsoft.DBforPostgreSQL/locations/northcentralus/operationResults/e86d0977-5036-46a2-b1a1-eae754cc5366?api-version=2017-04-30-preview
Pragma: no-cache
Retry-After: 15
Server: Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Ms-Correlation-Request-Id: 3902415d-f5be-445c-a7f0-a1da876389ba
X-Ms-Ratelimit-Remaining-Subscription-Writes: 1199
X-Ms-Request-Id: e86d0977-5036-46a2-b1a1-eae754cc5366
X-Ms-Routing-Request-Id: EASTUS2:20170728T183010Z:3902415d-f5be-445c-a7 ...
Body: {"operation":"UpsertElasticServerDatabase","startTime":"2017-07-28T18:30:10.17Z"}"


Sponsored



Replies

Lin Leng on Wed, 02 Aug 2017 04:47:45


Hi Richard,

>>I have been following the steps outlined there to no avail.

I’m not quite following here, it seems that you are adding a database to the existing PostgreSQL server and it’s completed successfully, what’s the issue here? 

If you have any other questions, please let me know.

Regards,
Lin

Sean Pomeroy on Fri, 04 Aug 2017 17:33:30


I am experiencing the same issue for MySQL.

The call returns a 202(Accepted) by the database never gets created.