Skip to content

Commit

Permalink
Updating exemption for securityContacts to reflect the expected, as o…
Browse files Browse the repository at this point in the history
…f both MCSB and what the policy deploys
  • Loading branch information
Jonas Nørregaard Cordsen committed Feb 6, 2025
1 parent 13af15d commit 9491b62
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
"effect": {
"type": "String",
"defaultValue": "DeployIfNotExists",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"allowedValues": ["DeployIfNotExists", "Disabled"],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
Expand All @@ -41,11 +38,7 @@
"minimalSeverity": {
"type": "String",
"defaultValue": "High",
"allowedValues": [
"High",
"Medium",
"Low"
],
"allowedValues": ["High", "Medium", "Low"],
"metadata": {
"displayName": "Minimal severity",
"description": "Defines the minimal alert severity which will be sent as email notifications"
Expand Down Expand Up @@ -83,6 +76,14 @@
{
"field": "Microsoft.Security/securityContacts/notificationsSources[*].Alert.minimalSeverity",
"contains": "[[parameters('minimalSeverity')]"
},
{
"equals": "On",
"field": "Microsoft.Security/securityContacts/notificationsByRole.state"
},
{
"contains": "Owner",
"field": "Microsoft.Security/securityContacts/notificationsByRole.roles[*]"
}
]
},
Expand Down Expand Up @@ -126,9 +127,7 @@
"isEnabled": true,
"notificationsByRole": {
"state": "On",
"roles": [
"Owner"
]
"roles": ["Owner"]
},
"notificationsSources": [
{
Expand Down

0 comments on commit 9491b62

Please sign in to comment.