turbot/azure_insights

Query: key_vault_vaults_for_compute_snapshot

Usage

powerpipe query azure_insights.query.key_vault_vaults_for_compute_snapshot

SQL

select
lower(k.id) as key_vault_id
from
azure_compute_disk_encryption_set as e
left join azure_compute_snapshot as s on lower(s.disk_encryption_set_id) = lower(e.id)
left join azure_key_vault as k on lower(e.active_key_source_vault_id) = lower(k.id)
where
lower(s.id) = $1
and s.subscription_id = split_part($1, '/', 3);