last sync: 2020-Nov-30 15:25:09 UTC

Azure Policy definition

Azure Cosmos DB account should use customer-managed keys to encrypt data at rest

Name Azure Cosmos DB account should use customer-managed keys to encrypt data at rest
Azure Portal
Id 1f905d99-2ab7-462c-a6b0-f709acca6c8f
Version 1.0.0
details on versioning
Category Cosmos DB
Microsoft docs
Description Use customer-managed keys to control the encryption at rest of the data stored in Azure Cosmos DB when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys. See https://aka.ms/cosmosdb-cmk
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: audit
Allowed: (audit, deny, disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-06-23 16:03:25 add 1f905d99-2ab7-462c-a6b0-f709acca6c8f
Used in Initiatives none
Json
{
  "properties": {
    "displayName": "Azure Cosmos DB account should use customer-managed keys to encrypt data at rest",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Use customer-managed keys to control the encryption at rest of the data stored in Azure Cosmos DB when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys. See https://aka.ms/cosmosdb-cmk",
    "metadata": {
      "version": "1.0.0",
      "category": "Cosmos DB"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The desired effect of the policy."
        },
        "allowedValues": [
          "audit",
          "deny",
          "disabled"
        ],
        "defaultValue": "audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "Microsoft.DocumentDB/databaseAccounts/keyVaultKeyUri",
            "exists": false
          },
          {
            "field": "type",
            "equals": "Microsoft.DocumentDB/databaseAccounts"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/1f905d99-2ab7-462c-a6b0-f709acca6c8f",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "1f905d99-2ab7-462c-a6b0-f709acca6c8f"
}