gpt4 book ai didi

azure - 如何使用ARM模板进行基于Vcore的弹性池部署?

转载 作者:行者123 更新时间:2023-12-03 04:12:31 25 4
gpt4 key购买 nike

我正在尝试使用 Azure ARM 模板 ( https://github.com/Azure/azure-quickstart-templates/blob/master/101-sql-elastic-pool-create/azuredeploy.json ) 创建 SQL azure 弹性池,我可以使用它并创建基于 eDTU 的弹性池,但是我需要创建基于 Vcor​​e 的,有任何线索吗?

最佳答案

尝试下面的模板,它在我这边工作得很好。

{
"$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"
}
]
}

我的示例参数:

enter image description here

在门户中检查结果:

enter image description here

关于azure - 如何使用ARM模板进行基于Vcore的弹性池部署?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55733343/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com