turbot/azure_compliance

Query: network_lb_diagnostics_logs_enabled

Usage

powerpipe query azure_compliance.query.network_lb_diagnostics_logs_enabled

SQL

select
l.id as resource,
case
when jsonb_array_length(diagnostic_settings) > 0 then 'ok'
else 'alarm'
end as status,
case
when jsonb_array_length(diagnostic_settings) > 0 then l.title || ' diagnostics logs enabled.'
else l.title || 'diagnostics logs disabled.'
end as reason
, l.resource_group as resource_group
, sub.display_name as subscription
from
azure_lb as l,
azure_subscription as sub
where
sub.subscription_id = l.subscription_id;