This repo contains ARM template samples for Azure Database for MySQL - Flexible Server.
-
Update the parameters.json file by replacing the parameter values with your own.
-
Deploy the templates from Azure Powershell, Azure CLI or through the Azure portal.
Deploy the templates from Azure Powershell using the below block of code.
$resourceGroupName = <sample-rg-name> New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName ` -TemplateFile "<your path to template.json file>" ` -TemplateParameterFile "<your path to parameters.json file>"
Alternatively, deploy the templates from Azure CLI using the below block of code.
az deployment group create \ --name mysql-deployment \ --resource-group sample-rg-name \ --template-file <your path to template.json file> \ --parameters '@<your path to parameters.json file>'