-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
LogAnalyticsClusters_CMKEnabled_Deny.json
83 lines (83 loc) · 2.65 KB
/
LogAnalyticsClusters_CMKEnabled_Deny.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"properties": {
"displayName": "Azure Monitor Logs clusters should be encrypted with customer-managed key",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Create Azure Monitor logs cluster with customer-managed keys encryption. By default, the log data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance. Customer-managed key in Azure Monitor gives you more control over the access to you data, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
"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"
},
{
"anyOf": [
{
"anyOf": [
{
"field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri",
"equals": ""
},
{
"field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri",
"exists": "false"
}
]
},
{
"anyOf": [
{
"field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName",
"equals": ""
},
{
"field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName",
"exists": "false"
}
]
},
{
"not": {
"field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVersion",
"exists": "true"
}
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/1f68a601-6e6d-4e42-babf-3f643a047ea2",
"name": "1f68a601-6e6d-4e42-babf-3f643a047ea2"
}