turbot/azure_insights

Query: target_compute_disks_for_compute_snapshot

Usage

powerpipe query azure_insights.query.target_compute_disks_for_compute_snapshot

SQL

select
lower(d.id) as disk_id
from
azure_compute_disk as d
left join azure_compute_snapshot as s on lower(d.creation_data_source_resource_id) = lower(s.id)
where
lower(s.id) = $1
and s.subscription_id = split_part($1, '/', 3);