turbot/azure_compliance

Query: storage_account_table_service_logging_enabled

Usage

powerpipe query azure_compliance.query.storage_account_table_service_logging_enabled

SQL

select
sa.id as resource,
case
when table_logging_write
and table_logging_read
and table_logging_delete then 'ok'
else 'alarm'
end as status,
case
when table_logging_write
and table_logging_read
and table_logging_delete then sa.name || ' table service logging enabled for read, write, delete requests.'
else sa.name || ' table service logging not enabled for: ' || concat_ws(
', ',
case
when not table_logging_write then 'write'
end,
case
when not table_logging_read then 'read'
end,
case
when not table_logging_delete then 'delete'
end
) || ' requests.'
end as reason,
sa.resource_group as resource_group,
sub.display_name as subscription
from
azure_storage_account as sa,
azure_subscription as sub
where
sub.subscription_id = sa.subscription_id;

Controls

The query is being used by the following controls: