使用ARM模板在Azure SQL DB上设置透明数据加密

时间:2016-04-08 16:40:29

标签: azure azure-resource-manager azure-sql-database

是否可以使用ARM json模板为SQL Azure数据库启用透明数据加密?如果是这样,怎么样?

2 个答案:

答案 0 :(得分:1)

您需要添加资源:

        "resources":[
        {
          "name": "current",
          "type": "transparentDataEncryption",
          "dependsOn": [
            "[parameters('databaseName')]"
          ],
          "location": null,
          "apiVersion": "2014-04-01",
          "properties": {
            "status": "Enabled"
          }
        }
      ]

数据库版本必须是版本12:

"resources": [
{
  "name": "[parameters('serverName')]",
  "type": "Microsoft.Sql/servers",
  "location": "[resourceGroup().location]",
  "tags": {
    "displayName": "SqlServer"
  },
  "apiVersion": "2014-04-01-preview",
  "properties": {
    "administratorLogin": "[parameters('administratorLogin')]",
    "administratorLoginPassword": "[parameters('administratorLoginPassword')]",
    "version": "12.0"
  },

答案 1 :(得分:0)

现在默认启用加密,您无需将其设置为启用。