1

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

4

1 回答 1

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

我的示例参数:

在此处输入图像描述

在门户中检查结果:

在此处输入图像描述

于 2019-04-18T02:18:01.680 回答