Gallery › Cache › Azure built-in policies
Azure Cache for Redis Enterprise should use customer-managed keys for encrypting disk data
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Use customer-managed keys (CMK) to manage the encryption at rest of your on-disk data. By default, customer data is encrypted with platform-managed keys (PMK), but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys 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 at https://aka.ms/RedisCMK.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Azure Cache for Redis Enterprise should use customer-managed keys for encrypting disk data",
"description": "Use customer-managed keys (CMK) to manage the encryption at rest of your on-disk data. By default, customer data is encrypted with platform-managed keys (PMK), but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys 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 at https://aka.ms/RedisCMK.",
"policyType": "BuiltIn",
"mode": "Indexed",
"metadata": {
"category": "Cache",
"version": "1.0.0"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Cache/redisEnterprise"
},
{
"field": "Microsoft.Cache/redisEnterprise/encryption.customerManagedKeyEncryption",
"exists": "false"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/09aa11bb-87ec-409f-bf0b-49b7c1561a87",
"name": "09aa11bb-87ec-409f-bf0b-49b7c1561a87"
}# Converted from RedisCacheEnterprise_CMKEnabled_Audit.json by ConvertTo-Bylaw.
Policy '09aa11bb-87ec-409f-bf0b-49b7c1561a87' {
Properties @{
DisplayName = 'Azure Cache for Redis Enterprise should use customer-managed keys for encrypting disk data'
Description = 'Use customer-managed keys (CMK) to manage the encryption at rest of your on-disk data. By default, customer data is encrypted with platform-managed keys (PMK), but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys 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 at https://aka.ms/RedisCMK.'
Category = 'Cache'
Version = '1.0.0'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Cache/redisEnterprise' {
Require 'encryption.customerManagedKeyEncryption exists' {
Field encryption.customerManagedKeyEncryption | Must -Exist
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Cache/RedisCacheEnterprise_CMKEnabled_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw