Create servers


Method Request URI

URI parameter


Request header

Request header Describe URI
x-ms-client-request-id Optional. An opaque value generated by the client, not to exceed 1KB of characters. We strongly recommend setting this value, so that the server can use it to obtain the client’s activity information.

Request body

Creating or updating MySQL on Azure servers requires writing the following parameters. An example JavaScript Object Notation (JSON) file is provided below

  "sku": { "name": "MS2" },
  "properties": {
    "version": "5.5",
    "dailyBackupTimeInHour": 10
Parameter Description
location Location of the server
SKU Performance tier of the server
version MySQL version (5.5 and 5.6 currently supported)
dailyBackupTimeInHour Default time for daily backups


An HTTPS response comprises a status code, a response header and a response body.

Status code

200 OK: Indicates that the server has returned successfully.

Response header

Request header Describe URI
x-ms-client-request-id Can uniquely identify the database request value. The request ID is used to track the request information.

Response Body

An example JSON file is provided below

  "id": "/subscriptions/{subID}/resourceGroups/DefaultResourceGroup/providers/Microsoft.MySql/servers/{server-name}",
  "name": "{server-name}",
  "type": "Microsoft.MySql/servers",
  "location": "chinaeast",
  "sku": { "name": "MS2" },
  "properties": {
    "version": "5.5",
    "dailyBackupTimeInHour": 10,
    "provisioningState": "Creating"
Parameter name Description
name Server name
provisioningState Server deployment status information