Control: Container instance container groups should be in virtual network
Description
This control ensures that the container group is deployed into a virtual network.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.container_instance_container_group_in_virtual_network
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.container_instance_container_group_in_virtual_network --share
SQL
This control uses a named query:
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 subscriptionfrom azure_container_group as cg, azure_subscription as subwhere sub.subscription_id = cg.subscription_id;