Control: Web app HTTP logs should be enabled
Description
Ensure that Web app HTTP logs is enabled. This control is non-compliant if Web app HTTP logs is disabled.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.appservice_web_app_http_logs_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.appservice_web_app_http_logs_enabled --share
SQL
This control uses a named query:
select a.id as resource, case when configuration -> 'properties' ->> 'httpLoggingEnabled' = 'true' then 'ok' else 'alarm' end as status, case when configuration -> 'properties' ->> 'httpLoggingEnabled' = 'true' then a.name || ' HTTP logs enabled.' else a.name || ' HTTP logs disabled.' end as reason , a.resource_group as resource_group , sub.display_name as subscriptionfrom azure_app_service_web_app as a, azure_subscription as subwhere sub.subscription_id = a.subscription_id;