last sync: 2020-Oct-30 14:31:57 UTC

Azure Policy definition

Container registries should be encrypted with a customer-managed key (CMK)

Name Container registries should be encrypted with a customer-managed key (CMK)
Azure Portal
Id 5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580
Version 1.1.0
details on versioning
Category Container Registry
Microsoft docs
Description Audit container registries that do not have encryption enabled with customer-managed keys (CMK). Azure automatically encrypts registry contents at rest with service-managed keys. You can supplement default encryption with an additional encryption layer using a key that you create and manage in Azure Key Vault. For more information on CMK encryption, please visit: https://aka.ms/acr/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-10-27 14:12:45 change Minor (1.0.0 > 1.1.0)
2020-05-29 15:39:09 change Previous DisplayName: [Preview]: Container Registries should be encrypted with a Customer-Managed Key (CMK)
2020-02-12 02:52:44 add 5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580
Used in Initiatives none
JSON Changes

Json
{
  "properties": {
    "displayName": "Container registries should be encrypted with a customer-managed key (CMK)",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Audit container registries that do not have encryption enabled with customer-managed keys (CMK). Azure automatically encrypts registry contents at rest with service-managed keys. You can supplement default encryption with an additional encryption layer using a key that you create and manage in Azure Key Vault. For more information on CMK encryption, please visit: https://aka.ms/acr/CMK.",
    "metadata": {
      "version": "1.1.0",
      "category": "Container Registry"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.ContainerRegistry/registries"
          },
          {
            "field": "Microsoft.ContainerRegistry/registries/encryption.status",
            "notEquals": "enabled"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580"
}