turbot/steampipe-mod-azure-insights

Dashboard: Azure Network Security Group Detail

This dashboard answers the following questions for each network security group:

  • How is the network security group configured?
  • What relationships does the network security group have with other resources?
  • What tags are applied?
  • Which resources is it associated to?
  • What are the ingress and egress rules configured?
This dashboard contains 6 cards, 2 flows, 1 graph, 1 input and 6 tables.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-azure-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select Azure Network Security Group Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run azure_insights.dashboard.network_security_group_detail --share

Queries

This dashboard uses the the following queries:
-- NICs
select
ni.title as "Title",
'Network Interface' as "Type",
ni.id as "ID"
from
azure_network_security_group as nsg,
jsonb_array_elements(nsg.network_interfaces) as nic
left join azure_network_interface as ni on lower(ni.id) = lower(nic ->> 'id')
where
lower(nsg.id) = $1
and nsg.subscription_id = split_part($1, '/', 3)
-- Subnets
union select
s.title as "Title",
'Subnet' as "Type",
s.id as "ID"
from
azure_network_security_group as nsg,
jsonb_array_elements(nsg.subnets) as subnets
left join azure_subnet as s on lower(s.id) = lower(subnets ->> 'id')
where
lower(nsg.id) = $1
and nsg.subscription_id = split_part($1, '/', 3)

Tags