turbot/azure_compliance

Query: container_instance_container_group_in_virtual_network

Usage

powerpipe query azure_compliance.query.container_instance_container_group_in_virtual_network

SQL

select
cg.id as resource,
case
when subnet_ids is not null then 'ok'
else 'alarm'
end as status,
case
when subnet_ids is not null then cg.title || ' in virtual network.'
else cg.title || ' not in virtual network.'
end as reason
, cg.resource_group as resource_group
, sub.display_name as subscription
from
azure_container_group as cg,
azure_subscription as sub
where
sub.subscription_id = cg.subscription_id;

Controls

The query is being used by the following controls: