설명
Defender for Cloud 보안 연락처에서 alertNotifications는 새 경고를 이메일로 보낼지 정합니다. notificationsByRole은 구독 역할을 기준으로 수신자를 지정합니다.
잠재적 영향
심각도 기준 때문에 필요한 경고가 빠지거나 역할 변경 후 다른 사람이 경고를 받을 수 있습니다.
해결 방법
alertNotifications.state를 On으로 설정하고 minimalSeverity를 선택하세요. 역할별로 보내려면 notificationsByRole을 켜고 역할을 지정하세요. 현재 역할 보유자와 실제 수신 여부를 확인하세요. 다른 경로를 사용한다면 그 경로도 테스트하세요.
예시
targetScope = 'subscription'인 템플릿에 실제 연락처를 지정하세요. 두 예시 모두 Owner 역할과 심각도 기준 High를 지정합니다. 두 번째 예시는 새 경고 이메일을 켭니다.
변경 전
bicep
resource security_contact 'Microsoft.Security/securityContacts@2020-01-01-preview' = {
name: 'security contact'
properties: {
emails: 'sample@email.com'
phone: '9999999'
alertNotifications: {
state: 'Off'
minimalSeverity: 'High'
}
notificationsByRole: {
state: 'On'
roles: ['Owner']
}
}
}
변경 후
bicep
resource security_contact 'Microsoft.Security/securityContacts@2020-01-01-preview' = {
name: 'security contact'
properties: {
emails: 'sample@email.com'
phone: '9999999'
alertNotifications: {
state: 'On'
minimalSeverity: 'High'
}
notificationsByRole: {
state: 'On'
roles: ['Owner']
}
}
}