Gallery › Monitoring › Azure built-in policies
Azure Monitor Logs clusters should be created with infrastructure-encryption enabled (double encryption)
Converted Policy Audit Deny Disabled Mode Indexed Version 1.1.0
To ensure secure data encryption is enabled at the service level and the infrastructure level with two different encryption algorithms and two different keys, use an Azure Monitor dedicated cluster. This option is enabled by default when supported at the region, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONLogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json · 55 lines
{
"properties": {
"displayName": "Azure Monitor Logs clusters should be created with infrastructure-encryption enabled (double encryption)",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "To ensure secure data encryption is enabled at the service level and the infrastructure level with two different encryption algorithms and two different keys, use an Azure Monitor dedicated cluster. This option is enabled by default when supported at the region, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
"metadata": {
"version": "1.1.0",
"category": "Monitoring"
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The effect determines what happens when the policy rule is evaluated to match"
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.OperationalInsights/clusters"
},
{
"not": {
"field": "Microsoft.OperationalInsights/clusters/isDoubleEncryptionEnabled",
"equals": "true"
}
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/ea0dfaed-95fb-448c-934e-d6e713ce393d",
"name": "ea0dfaed-95fb-448c-934e-d6e713ce393d"
}Bylawea0dfaed-95fb-448c-934e-d6e713ce393d.bylaw.ps1 · 28 lines
# Converted from LogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json by ConvertTo-Bylaw.
Policy 'ea0dfaed-95fb-448c-934e-d6e713ce393d' {
Properties @{
DisplayName = 'Azure Monitor Logs clusters should be created with infrastructure-encryption enabled (double encryption)'
Description = 'To ensure secure data encryption is enabled at the service level and the infrastructure level with two different encryption algorithms and two different keys, use an Azure Monitor dedicated cluster. This option is enabled by default when supported at the region, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.'
Version = '1.1.0'
Category = 'Monitoring'
PolicyVersion = '1.1.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('audit', 'Audit', 'deny', 'Deny', 'disabled', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'The effect determines what happens when the policy rule is evaluated to match'
}
Resource 'Microsoft.OperationalInsights/clusters' {
Require 'isDoubleEncryptionEnabled is true' {
Field isDoubleEncryptionEnabled | Must -Be 'true'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Monitoring/LogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json in Azure/azure-policy, under the MIT licence.
Bylaw