turbot/azure_insights

Query: source_compute_disks_for_compute_snapshot

Usage

powerpipe query azure_insights.query.source_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.id) = lower(s.source_resource_id)
where
lower(s.id) = $1
and s.subscription_id = split_part($1, '/', 3);