Description
The email field in azurerm_security_center_contact identifies the mailbox for Defender for Cloud contact notifications.
Potential impact
Alerts sent to a former owner or an unattended mailbox can go unanswered.
Remediation
Use an address the responsible team monitors. Configure contact and administrator notifications, verify delivery and update the address at handover. Test any secondary response channel.
Examples
AzureRM 4.50.0 requires name and email. Both excerpts omit name. The first also omits email and will fail validation.
Before
hcl
resource "azurerm_security_center_contact" "example" {
phone = "+1-555-555-5555"
alert_notifications = true
alerts_to_admins = true
}
After
hcl
resource "azurerm_security_center_contact" "example" {
email = "security-team@example.com"
phone = "+1-555-555-5555"
alert_notifications = true
alerts_to_admins = true
}
Replace security-team@example.com with the team’s actual address.