turbot/azure_compliance

Query: sql_database_transparent_data_encryption_enabled

Usage

powerpipe query azure_compliance.query.sql_database_transparent_data_encryption_enabled

SQL

select
s.database_id resource,
case
when transparent_data_encryption ->> 'status' = 'Enabled'
or transparent_data_encryption ->> 'state' = 'Enabled' then 'ok'
else 'alarm'
end as status,
case
when transparent_data_encryption ->> 'status' = 'Enabled'
or transparent_data_encryption ->> 'state' = 'Enabled' then s.title || ' transparent data encryption enabled.'
else s.title || ' transparent data encryption disabled.'
end as reason,
s.resource_group as resource_group,
sub.display_name as subscription
from
azure_sql_database as s,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id
and s.name <> 'master';

Controls

The query is being used by the following controls: