turbot/azure_insights

Query: network_security_group_unused_status

Usage

powerpipe query azure_insights.query.network_security_group_unused_status

SQL

select
status,
count(*)
from
(
select
case
when (
subnets is null
and network_interfaces is null
) then 'unassociated'
else 'associated'
end status
from
azure_network_security_group
) as n
group by
status
order by
status;

Dashboards

The query is used in the dashboards: