109 строки
4.3 KiB
JSON
109 строки
4.3 KiB
JSON
{
|
|
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"sqlVMName": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The VM name for Sql Cluster"
|
|
}
|
|
},
|
|
"domainName": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The domain name"
|
|
}
|
|
},
|
|
"sqlInstallationISOUri": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The Uri to the SQL Server installation ISO. E.g http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso"
|
|
},
|
|
"defaultValue": "http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso"
|
|
},
|
|
"sqlServerServiceAccountUserName": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The SQL Server Service account name"
|
|
},
|
|
"defaultValue": "sqlservice"
|
|
},
|
|
"sqlServerServiceAccountPassword": {
|
|
"type": "securestring",
|
|
"metadata": {
|
|
"description": "The SQL Server Service account password"
|
|
}
|
|
},
|
|
"adminUsername": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The name of the Administrator of the new VMs and Domain"
|
|
}
|
|
},
|
|
"adminPassword": {
|
|
"type": "securestring",
|
|
"metadata": {
|
|
"description": "The password for the Administrator account of the new VMs and Domain"
|
|
}
|
|
},
|
|
"primaryAdIpAddress": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The address of Primary AD"
|
|
},
|
|
"defaultValue": "10.0.0.4"
|
|
},
|
|
"assetLocation": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The location of resources that the script is dependent on such as linked templates and DSC modules"
|
|
}
|
|
}
|
|
},
|
|
"variables": {
|
|
"deploySqlStandaloneModulesURL": "[concat(parameters('assetLocation'),'/deploySqlStandalone.ps1.zip')]",
|
|
"deploySqlStandaloneConfigurationFunction": "deploySqlStandalone.ps1\\deploySqlStandalone"
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.Compute/virtualMachines/extensions",
|
|
"name": "[concat(parameters('sqlVMName'),'/sqlAOPrepare')]",
|
|
"apiVersion": "2015-06-15",
|
|
"location": "[resourceGroup().location]",
|
|
"dependsOn": [
|
|
],
|
|
"properties": {
|
|
"publisher": "Microsoft.Powershell",
|
|
"type": "DSC",
|
|
"typeHandlerVersion": "2.8",
|
|
"autoUpgradeMinorVersion": "true",
|
|
"settings": {
|
|
"modulesUrl": "[variables('deploySqlStandaloneModulesURL')]",
|
|
"configurationFunction": "[variables('deploySqlStandaloneConfigurationFunction')]",
|
|
"properties": {
|
|
"domainName": "[parameters('domainName')]",
|
|
"primaryAdIpAddress": "[parameters('primaryAdIpAddress')]",
|
|
"sqlInstallationISOUri": "[parameters('sqlInstallationISOUri')]",
|
|
"adminCreds": {
|
|
"userName": "[parameters('adminUserName')]",
|
|
"password": "PrivateSettingsRef:adminPassword"
|
|
},
|
|
"sqlServiceCreds": {
|
|
"userName": "[parameters('sqlServerServiceAccountUserName')]",
|
|
"password": "PrivateSettingsRef:sqlServerServiceAccountPassword"
|
|
}
|
|
}
|
|
},
|
|
"protectedSettings": {
|
|
"items": {
|
|
"adminPassword": "[parameters('adminPassword')]",
|
|
"sqlServerServiceAccountPassword": "[parameters('sqlServerServiceAccountPassword')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outputs": {
|
|
}
|
|
}
|