turbot/azure_insights

Query: compute_virtual_machine_scale_set_vm_data_disks

Usage

powerpipe query azure_insights.query.compute_virtual_machine_scale_set_vm_data_disks

SQL

select
disk ->> 'caching' as "Caching",
disk ->> 'createOption' as "Create Option",
disk ->> 'diskSizeGB' as "Disk Size (GB)",
disk ->> 'lun' as "Logical Unit Number",
disk -> 'managedDisk' ->> 'storageAccountType' as "Storage Account Type",
(disk -> 'writeAcceleratorEnabled')::boolean as "Write Accelerator Enabled"
from
azure_compute_virtual_machine_scale_set_vm,
jsonb_array_elements(virtual_machine_storage_profile -> 'dataDisks') as disk
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: