Skip to content

Commit

Permalink
Merge branch 'main' into Update-Custom-PrivateDNSInitiative
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Rowlandson committed Nov 23, 2022
2 parents 0359a48 + e04594e commit b652624
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 11 deletions.
12 changes: 6 additions & 6 deletions eslzArm/managementGroupTemplates/policyDefinitions/policies.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"properties": {
"policyType": "Custom",
"mode": "All",
"displayName": "Deploy Azure Security Center Security Contacts",
"description": "Deploy Azure Security Center Security Contacts",
"displayName": "Deploy Microsoft Defender for Cloud Security Contacts",
"description": "Deploy Microsoft Defender for Cloud Security Contacts",
"metadata": {
"version": "1.0.0",
"category": "Security Center",
Expand Down Expand Up @@ -37,6 +37,19 @@
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"minimalSeverity": {
"type": "string",
"defaultValue": "High",
"allowedValues": [
"High",
"Medium",
"Low"
],
"metadata": {
"displayName": "Minimal severity",
"description": "Defines the minimal alert severity which will be sent as email notifications"
}
}
},
"policyRule": {
Expand All @@ -63,6 +76,10 @@
"field": "Microsoft.Security/securityContacts/email",
"contains": "[[parameters('emailSecurityContact')]"
},
{
"field": "Microsoft.Security/securityContacts/alertNotifications.minimalSeverity",
"contains": "[[parameters('minimalSeverity')]"
},
{
"field": "type",
"equals": "Microsoft.Security/securityContacts"
Expand Down Expand Up @@ -113,7 +130,7 @@
},
"alertNotifications": {
"state": "On",
"minimalSeverity": "High"
"minimalSeverity": "[[parameters('minimalSeverity')]"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
"description": "Provide email address for Microsoft Defender for Cloud contact details"
}
},
"minimalSeverity": {
"type": "string",
"allowedValues": [
"High",
"Medium",
"Low"
],
"defaultValue": "High",
"metadata": {
"displayName": "Minimal severity",
"description": "Defines the minimal alert severity which will be sent as email notifications"
}
},
"logAnalytics": {
"type": "String",
"metadata": {
Expand Down Expand Up @@ -119,6 +132,9 @@
"parameters": {
"emailSecurityContact": {
"value": "[[parameters('emailSecurityContact')]"
},
"minimalSeverity":{
"value":"[[parameters('minimalSeverity')]"
}
},
"groupNames": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
"description": "Provide email address for Microsoft Defender for Cloud contact details"
}
},
"minimalSeverity": {
"type": "string",
"allowedValues": [
"High",
"Medium",
"Low"
],
"defaultValue": "High",
"metadata": {
"displayName": "Minimal severity",
"description": "Defines the minimal alert severity which will be sent as email notifications"
}
},
"logAnalytics": {
"type": "String",
"metadata": {
Expand Down Expand Up @@ -185,6 +198,9 @@
"parameters": {
"emailSecurityContact": {
"value": "[[parameters('emailSecurityContact')]"
},
"minimalSeverity":{
"value":"[[parameters('minimalSeverity')]"
}
},
"groupNames": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
"description": "Provide email address for Microsoft Defender for Cloud contact details"
}
},
"minimalSeverity": {
"type": "string",
"allowedValues": [
"High",
"Medium",
"Low"
],
"defaultValue": "High",
"metadata": {
"displayName": "Minimal severity",
"description": "Defines the minimal alert severity which will be sent as email notifications"
}
},
"logAnalytics": {
"type": "String",
"metadata": {
Expand Down Expand Up @@ -288,13 +301,16 @@
}
},
"groupNames": []
},
},
{
"policyDefinitionReferenceId": "securityEmailContact",
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deploy-ASC-SecurityContacts",
"parameters": {
"emailSecurityContact": {
"value": "[[parameters('emailSecurityContact')]"
},
"minimalSeverity": {
"value": "[[parameters('minimalSeverity')]"
}
},
"groupNames": []
Expand All @@ -318,4 +334,4 @@
],
"policyDefinitionGroups": null
}
}
}

0 comments on commit b652624

Please sign in to comment.