Description
emailAddresses names the people who receive Azure SQL database security alerts directly. emailAccountAdmins controls a separate administrator recipient group.
Potential impact
An alert can reach administrators and still miss the team on call for the database.
Remediation
If responders need direct email, add their monitored mailbox to emailAddresses. Decide whether to also notify account administrators. Confirm the team receives alerts through the chosen route and update recipients at handover.
Examples
Both excerpts enable the Default policy and administrator email. The second adds a direct recipient. Replace the example server, database and address with your own.
Before
bicep
resource sqlServer1_sqlDatabase1_securityPolicy1 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = {
name: 'sample/server/Default'
properties: {
emailAccountAdmins: true
retentionDays: 4
state: 'Enabled'
}
}
After
bicep
resource sqlServer1_sqlDatabase1_securityPolicy1 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = {
name: 'sample/server/Default'
properties: {
emailAccountAdmins: true
emailAddresses: ['sample@email.com']
retentionDays: 4
state: 'Enabled'
}
}