turbot/azure_compliance

Query: appservice_authentication_enabled

Usage

powerpipe query azure_compliance.query.appservice_authentication_enabled

SQL

select
app.id as resource,
case
when not (auth_settings -> 'properties' ->> 'enabled') :: boolean then 'alarm'
else 'ok'
end as status,
case
when not (auth_settings -> 'properties' ->> 'enabled') :: boolean then name || ' authentication not set.'
else name || ' authentication set.'
end as reason
, app.resource_group as resource_group
, sub.display_name as subscription
from
azure_app_service_web_app as app,
azure_subscription as sub
where
sub.subscription_id = app.subscription_id;

Controls

The query is being used by the following controls: