-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
InfrastructureEncryptionEnabled_Audit.json
54 lines (54 loc) · 1.67 KB
/
InfrastructureEncryptionEnabled_Audit.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
{
"properties": {
"displayName": "Event Hub namespaces should have double encryption enabled",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Enabling double encryption helps protect and safeguard your data to meet your organizational security and compliance commitments. When double encryption has been enabled, data in the storage account is encrypted twice, once at the service level and once at the infrastructure level, using two different encryption algorithms and two different keys.",
"metadata": {
"version": "1.0.0",
"category": "Event Hub"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the audit policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.EventHub/namespaces"
},
{
"field": "Microsoft.EventHub/namespaces/clusterArmId",
"exists": "true"
},
{
"field": "Microsoft.EventHub/namespaces/encryption.requireInfrastructureEncryption",
"notEquals": "true"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/836cd60e-87f3-4e6a-a27c-29d687f01a4c",
"name": "836cd60e-87f3-4e6a-a27c-29d687f01a4c"
}