last sync: 2021-Aug-04 14:59:26 UTC

Azure Policy definition

Azure Log Search Alerts over Log Analytics workspaces should use customer-managed keys

Name Azure Log Search Alerts over Log Analytics workspaces should use customer-managed keys
Azure Portal
Id 94c1f94d-33b0-4062-bd04-1cdc3e7eece2
Version 1.0.0
details on versioning
Category Monitoring
Microsoft docs
Description Ensure that Azure Log Search Alerts are implementing customer-managed keys, by storing the query text using the storage account that the customer had provided for the queried Log Analytics workspace. For more information, visit https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled, Deny)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-05-26 13:43:16 add 94c1f94d-33b0-4062-bd04-1cdc3e7eece2
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Azure Log Search Alerts over Log Analytics workspaces should use customer-managed keys",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Ensure that Azure Log Search Alerts are implementing customer-managed keys, by storing the query text using the storage account that the customer had provided for the queried Log Analytics workspace. For more information, visit https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
    "metadata": {
      "version": "1.0.0",
      "category": "Monitoring"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The effect determines what happens when the policy rule is evaluated to match"
        },
        "allowedValues": [
          "Audit",
          "Disabled",
          "Deny"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Insights/scheduledqueryrules"
          },
          {
            "field": "Microsoft.Insights/scheduledqueryrules/checkWorkspaceAlertsStorageConfigured",
            "notEquals": "true"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/94c1f94d-33b0-4062-bd04-1cdc3e7eece2",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "94c1f94d-33b0-4062-bd04-1cdc3e7eece2"
}