Description
In an Azure SQL database security alert policy, emailAccountAdmins controls delivery to account administrators. Recipients in emailAddresses can still receive alerts when it is off.
Potential impact
If neither route reaches the on-call team, a database alert can go unattended.
Remediation
Set emailAccountAdmins to true if account administrators handle these alerts. Check the explicit addresses, confirm delivery to a monitored mailbox and agree who responds.
Examples
Both excerpts enable the alert policy for one database on an existing SQL server. Supply the server name, database name and the team’s email address.
Before
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = {
name: 'sample/server/default'
properties: {
emailAccountAdmins: false
emailAddresses: ['sample@email.com']
retentionDays: 4
state: 'Enabled'
}
}
The first sends alerts to the listed address.
After
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = {
name: 'sample/server/default'
properties: {
emailAccountAdmins: true
emailAddresses: ['sample@email.com']
retentionDays: 4
state: 'Enabled'
}
}
The second adds account administrators to the recipients.