last sync: 2021-Jan-25 16:07:05 UTC

Azure Policy definition

Azure Batch account should use customer-managed keys to encrypt data

Name Azure Batch account should use customer-managed keys to encrypt data
Azure Portal
Id 99e9ccd8-3db9-4592-b0d1-14b1715a4d8a
Version 1.0.0
details on versioning
Category Azure Batch
Microsoft docs
Description Use customer-managed keys (CMKs) to manage the encryption at rest of your Batch account's data. By default, customer data is encrypted with service-managed keys, but CMKs are commonly required to meet regulatory compliance standards. CMKs enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about CMK encryption at https://aka.ms/Batch-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
2021-01-05 16:06:49 add 99e9ccd8-3db9-4592-b0d1-14b1715a4d8a
Used in Initiatives none
Json
{
  "properties": {
    "displayName": "Azure Batch account should use customer-managed keys to encrypt data",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Use customer-managed keys (CMKs) to manage the encryption at rest of your Batch account's data. By default, customer data is encrypted with service-managed keys, but CMKs are commonly required to meet regulatory compliance standards. CMKs enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about CMK encryption at https://aka.ms/Batch-CMK.",
    "metadata": {
      "version": "1.0.0",
      "category": "Azure Batch"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The desired effect of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Batch/batchAccounts"
          },
          {
            "field": "Microsoft.Batch/batchAccounts/encryption.keySource",
            "notEquals": "Microsoft.KeyVault"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/99e9ccd8-3db9-4592-b0d1-14b1715a4d8a",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "99e9ccd8-3db9-4592-b0d1-14b1715a4d8a"
}