turbot/terraform_azure_compliance

Query: appservice_function_app_public_access_disabled

Usage

powerpipe query terraform_azure_compliance.query.appservice_function_app_public_access_disabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'public_network_access_enabled') is null or (attributes_std ->> 'public_network_access_enabled')::bool then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'public_network_access_enabled') is null or (attributes_std ->> 'public_network_access_enabled')::bool then ' publicly accessible'
else ' not publicly accessible'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('azurerm_linux_function_app', 'azurerm_linux_function_app_slot', 'azurerm_windows_function_app', 'azurerm_windows_function_app_slot');

Controls

The query is being used by the following controls: