我正在尝试使用Azure ARM模板(https://github.com/Azure/azure-quickstart-templates/blob/master/101-sql-elastic-pool-create/azuredeploy.json)创建SQL天蓝色的弹性池,我可以使用它并创建基于eDTU的弹性池,但是我需要创建基于Vcore的产品,有潜在客户吗?
答案 0 :(得分:0)
尝试以下模板,对我而言效果很好。
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"administratorLogin": {
"type": "string"
},
"administratorLoginPassword": {
"type": "securestring"
},
"serverName": {
"type": "string"
},
"serverLocation": {
"type": "string"
},
"elasticPoolName": {
"type": "string"
},
"skuName": {
"type": "string"
},
"tier": {
"type": "string"
},
"poolLimit": {
"type": "string"
},
"poolSize": {
"type": "int"
},
"perDatabasePerformanceMin": {
"type": "string"
},
"perDatabasePerformanceMax": {
"type": "string"
},
"zoneRedundant": {
"type": "bool",
"defaultValue": false
},
"licenseType": {
"type": "string",
"defaultValue": ""
},
"allowAzureIps": {
"type": "bool",
"defaultValue": true
}
},
"variables": {},
"resources": [
{
"apiVersion": "2015-05-01-preview",
"location": "[parameters('serverLocation')]",
"name": "[parameters('serverName')]",
"properties": {
"administratorLogin": "[parameters('administratorLogin')]",
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
"version": "12.0"
},
"resources": [
{
"apiVersion": "2017-10-01-preview",
"dependsOn": [
"[concat('Microsoft.Sql/servers/', parameters('serverName'))]"
],
"location": "[parameters('serverLocation')]",
"name": "[concat(parameters('serverName'), '/', parameters('elasticPoolName'))]",
"sku": {
"name": "[parameters('skuName')]",
"tier": "[parameters('tier')]",
"capacity": "[parameters('poolLimit')]"
},
"properties": {
"perDatabaseSettings": {
"minCapacity": "[parameters('perDatabasePerformanceMin')]",
"maxCapacity": "[parameters('perDatabasePerformanceMax')]"
},
"maxSizeBytes": "[parameters('poolSize')]",
"zoneRedundant": "[parameters('zoneRedundant')]",
"licenseType": "[parameters('licenseType')]"
},
"type": "Microsoft.Sql/servers/elasticpools"
},
{
"condition": "[parameters('allowAzureIps')]",
"apiVersion": "2014-04-01-preview",
"dependsOn": [
"[concat('Microsoft.Sql/servers/', parameters('serverName'))]"
],
"location": "[parameters('serverLocation')]",
"name": "AllowAllWindowsAzureIps",
"properties": {
"endIpAddress": "0.0.0.0",
"startIpAddress": "0.0.0.0"
},
"type": "firewallrules"
}
],
"type": "Microsoft.Sql/servers"
}
]
}
我的示例参数:
在门户中查看结果: