turbot/azure_compliance

Query: eventgrid_domain_restrict_public_access

Usage

powerpipe query azure_compliance.query.eventgrid_domain_restrict_public_access

SQL

select
a.id as resource,
case
when public_network_access = 'Enabled' then 'alarm'
else 'ok'
end as status,
case
when public_network_access = 'Enabled' then a.name || ' publicly accessible.'
else a.name || ' not publicly accessible.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_eventgrid_domain a,
azure_subscription sub;

Controls

The query is being used by the following controls: