-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(misconf): Update SecurityCenter schema #9674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📊 API Changes DetectedSemver impact: |
42aa18c to
e484cef
Compare
| // https://learn.microsoft.com/en-us/azure/templates/microsoft.security/securitycontacts?pivots=deployment-language-arm-template#securitycontactproperties-1 | ||
| EnableAlertNotifications: resource.Properties.GetMapValue("email").AsBoolValue(false, resource.Metadata), | ||
| Metadata: resource.Metadata, | ||
| EnableAlertNotifications: resource.Properties.GetMapValue("alertNotifications").AsBoolValue(false, resource.Metadata), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alertNotifications field was last present in version 2020-01-01 as an object, then it was removed.
I glanced at the latest documentation, and it seems to me that now, instead of alertNotifications, notificationsSources is used with the following configuration to configure the alert level:
"notificationsSources": [
{
"sourceType": "Alert",
"minimalSeverity": "High"
}
]You also need to consider the isEnabled field, which indicates whether the security contact is enabled.
fa224de to
c585c03
Compare
Update SecurityCenter schema
Add Email and EnableAlertsToAdmins
Checklist