Templates/SQL.json
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "sqlName": { "type": "string", "defaultValue": "sql[UID]", "metadata": { "description": "The primary name of the SQL Server." } }, "sqlLocation": { "type": "string", "defaultValue": "azure[LOCATION]", "metadata": { "description": "SQL Location." } }, "sqlAdminName": { "type": "string", "defaultValue": "azsa", "metadata": { "description": "The SQL Server administrator name." } }, "sqlAdminPassword": { "type": "securestring", "defaultValue": "get[PASSWORD]", "metadata": { "description": "The SQL Server adminstrator password." } } }, "variables": { "sqlLocation": "[if(empty(parameters('sqlLocation')), resourceGroup().location, parameters('sqlLocation'))]" }, "resources": [ { "name": "[parameters('sqlName')]", "type": "Microsoft.Sql/servers", "location": "[variables('sqlLocation')]", "apiVersion": "2015-05-01-preview", "kind": "v12.0", "tags": {}, "properties": { "administratorLogin": "[parameters('sqlAdminName')]", "administratorLoginPassword": "[parameters('sqlAdminPassword')]", "version": "12.0" } } ], "outputs": {} } |