turbot/azure_insights

Query: compute_virtual_machine_scale_set_vm_os_disks

Usage

powerpipe query azure_insights.query.compute_virtual_machine_scale_set_vm_os_disks

SQL

select
virtual_machine_storage_profile -> 'osDisk' ->> 'caching' as "Caching",
virtual_machine_storage_profile -> 'osDisk' ->> 'createOption' as "Create Option",
virtual_machine_storage_profile -> 'osDisk' ->> 'diskSizeGB' as "Disk Size (GB)",
virtual_machine_storage_profile -> 'osDisk' -> 'managedDisk' ->> 'storageAccountType' as "Storage Account Type",
virtual_machine_storage_profile -> 'osDisk' ->> 'osType' as "OS Type"
from
azure_compute_virtual_machine_scale_set_vm
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: