-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ASC_Email_notification.json
72 lines (72 loc) · 2.19 KB
/
ASC_Email_notification.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
{
"properties": {
"displayName": "Email notification for high severity alerts should be enabled",
"policyType": "BuiltIn",
"mode": "All",
"description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, enable email notifications for high severity alerts in Security Center.",
"metadata": {
"version": "1.2.0",
"category": "Security Center"
},
"version": "1.2.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "AuditIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Resources/subscriptions"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/securityContacts",
"existenceCondition": {
"anyOf": [
{
"field": "Microsoft.Security/securityContacts/alertNotifications",
"equals": "On"
},
{
"allOf": [
{
"field": "Microsoft.Security/securityContacts/isEnabled",
"equals": true
},
{
"count": {
"field": "Microsoft.Security/securityContacts/notificationsSources[*]",
"where": {
"field": "Microsoft.Security/securityContacts/notificationsSources[*].sourceType",
"equals": "Alert"
}
},
"greater": 0
}
]
}
]
}
}
}
},
"versions": [
"1.2.0",
"1.1.0",
"1.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/6e2593d9-add6-4083-9c9b-4b7d2188c899",
"name": "6e2593d9-add6-4083-9c9b-4b7d2188c899"
}