last sync: 2020-Jul-07 14:21:17 UTC

Azure Policy

Container Registries should be encrypted with a Customer-Managed Key (CMK)

Policy DisplayName Container Registries should be encrypted with a Customer-Managed Key (CMK)
Policy Id 5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580
Policy Category Container Registry
Policy Description Audit Container Registries that do not have encryption enabled with Customer-Managed Keys (CMK). For more information on CMK encryption, please visit: https://aka.ms/acr/CMK.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: Audit
Allowed: (Audit,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-05-29 15:39:09 change: DisplayName previous DisplayName: [Preview]: Container Registries should be encrypted with a Customer-Managed Key (CMK)
2020-02-12 02:52:44 add: Policy 5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580
Used in Policy Initiative(s) none
Policy Rule
{
  "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). For more information on CMK encryption, please visit: https://aka.ms/acr/CMK.",
    "metadata": {
      "version": "1.0.0",
      "category": "Container Registry"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.ContainerRegistry/registries"
          },
          {
            "not": {
              "field": "Microsoft.ContainerRegistry/registries/encryption.status",
              "equals": "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"
}