Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Azure Database for MySQL ARM Template sample
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"administratorLogin": {
"type": "string",
"metadata": {
"description": "Admin username for MySQL Server."
}
},
"administratorLoginPassword": {
"type": "securestring",
"metadata": {
"description": "Password for MySQL Server admin user."
}
}
},
"variables": {
"skuName": "GP_Gen4_2",
"skuTier": "GeneralPurpose",
"skuCapacity": "2",
"skuSizeMB": "5120",
"skuFamily": "Gen4",
"serverName": "mysqltestdb01",
"serverVersion": "5.7",
"backupRetentionDays": "7",
"geoRedundantBackup": "Disabled"
},
"resources": [
{
"type": "Microsoft.DBforMySQL/servers",
"sku": {
"name": "[variables('skuName')]",
"tier": "[variables('skuTier')]",
"capacity": "[variables('skuCapacity')]",
"size": "[variables('skuSizeMB')]",
"family": "[variables('skuFamily')]"
},
"kind": "",
"name": "[variables('serverName')]",
"apiVersion": "2017-12-01-preview",
"location": "[resourceGroup().location]",
"properties": {
"version": "[variables('serverVersion')]",
"administratorLogin": "[parameters('administratorLogin')]",
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
"storageProfile": {
"storageMB": "[variables('skuSizeMB')]",
"backupRetentionDays": "[variables('backupRetentionDays')]",
"geoRedundantBackup": "[variables('geoRedundantBackup')]"
}
}
}
],
"outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.