turbot/terraform_azure_compliance

Query: sql_server_admins_email_security_alert_enabled

Usage

powerpipe query terraform_azure_compliance.query.sql_server_admins_email_security_alert_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'email_account_admins')::boolean then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'email_account_admins')::boolean then ' account administrators email security alert enabled'
else ' account administrators email security alert disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_mssql_server_security_alert_policy';

Controls

The query is being used by the following controls: