turbot/azure_insights

Query: network_interface_attached_nsg

Usage

powerpipe query azure_insights.query.network_interface_attached_nsg

SQL

select
nsg.name as "Name",
lower(nsg.id) as "ID"
from
azure_network_interface as ni
left join azure_network_security_group as nsg on lower(nsg.id) = lower(ni.network_security_group_id)
where
nsg.id is not null
and lower(ni.id) = $1
and ni.subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: