turbot/azure_compliance

Query: spring_cloud_service_network_injection_enabled

Usage

powerpipe query azure_compliance.query.spring_cloud_service_network_injection_enabled

SQL

select
distinct a.name as resource,
case
when sku_tier <> 'Standard' then 'skip'
when sku_tier = 'Standard' and network_profile ->> 'ServiceRuntimeSubnetID' is not null then 'ok'
else 'alarm'
end as status,
case
when sku_tier <> 'Standard' then a.name || ' is of ' || sku_tier || ' tier.'
when sku_tier = 'Standard' and network_profile ->> 'ServiceRuntimeSubnetID' is not null then a.name || ' network injection enabled.'
else a.name || ' network injection disabled.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_spring_cloud_service as a,
azure_subscription as sub
where
sub.subscription_id = a.subscription_id;

Controls

The query is being used by the following controls: