-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ASC_Email_notification_to_subscription_owner.json
59 lines (59 loc) · 1.79 KB
/
ASC_Email_notification_to_subscription_owner.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
{
"properties": {
"displayName": "Email notification to subscription owner for high severity alerts should be enabled",
"policyType": "BuiltIn",
"mode": "All",
"description": "To ensure your subscription owners are notified when there is a potential security breach in their subscription, set email notifications to subscription owners for high severity alerts in Security Center.",
"metadata": {
"version": "2.0.0",
"category": "Security Center"
},
"version": "2.0.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",
"existenceScope": "subscription",
"existenceCondition": {
"not": {
"allOf": [
{
"field": "Microsoft.Security/securityContacts/alertsToAdmins",
"equals": "Off"
},
{
"field": "Microsoft.Security/securityContacts/alertNotifications.minimalSeverity",
"equals": "High"
}
]
}
}
}
}
},
"versions": [
"2.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/0b15565f-aa9e-48ba-8619-45960f2c314d",
"name": "0b15565f-aa9e-48ba-8619-45960f2c314d"
}