turbot/steampipe-mod-azure-insights

Dashboard: Azure Compute Virtual Machine Detail

This dashboard answers the following questions for each virtual machine:

  • How is the virtual machine configured?
  • What relationships does the virtual machine have with other resources?
  • What tags are applied?
  • Which data disks, security groups and network interfaces is it attached to?
  • How is encryption configured?
This dashboard contains 5 cards, 1 graph, 1 input and 8 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 Compute Virtual Machine Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

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

Queries

This dashboard uses the the following queries:
select
disk ->> 'name' as "Name",
disk ->> 'caching' as "Caching",
disk ->> 'createOption' as "Create Option",
(disk ->> 'toBeDetached')::boolean as "To Be Detached",
(disk ->> 'writeAcceleratorEnabled')::boolean as "Write Accelerator Enabled",
lower(disk -> 'managedDisk' ->> 'id') as "Managed Disk ID"
from
azure_compute_virtual_machine,
jsonb_array_elements(data_disks) as disk
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Tags