turbot/azure_insights

Query: compute_images_for_compute_virtual_machine

Usage

powerpipe query azure_insights.query.compute_images_for_compute_virtual_machine

SQL

select
lower(i.id) as compute_image_id
from
azure_compute_image as i
left join azure_compute_virtual_machine as v on lower(i.id) = lower(v.image_id)
where
lower(v.id) = $1
and v.subscription_id = split_part($1, '/', 3);