turbot/azure_compliance

Query: appservice_function_app_authentication_on

Usage

powerpipe query azure_compliance.query.appservice_function_app_authentication_on

SQL

select
fa.id as resource,
case
when auth_settings -> 'properties' ->> 'enabled' = 'true' then 'ok'
else 'alarm'
end as status,
case
when auth_settings -> 'properties' ->> 'enabled' = 'true' then name || ' authentication enabled.'
else name || ' authentication disabled.'
end as reason
, fa.resource_group as resource_group
, sub.display_name as subscription
from
azure_app_service_function_app fa,
azure_subscription sub
where
sub.subscription_id = fa.subscription_id;

Controls

The query is being used by the following controls: