turbot/azure_insights

Query: compute_disk_encryption_set_details

Usage

powerpipe query azure_insights.query.compute_disk_encryption_set_details

SQL

select
e.name as "Name",
e.encryption_type as "Encryption Type",
v.name as "Key Vault Name",
v.id as "Key Vault ID",
k.id as "Key ID",
k.name as "Key Name",
e.id as "ID"
from
azure_compute_disk_encryption_set as e
left join azure_compute_disk as d on d.encryption_disk_encryption_set_id = e.id
left join azure_key_vault as v on v.id = e.active_key_source_vault_id
left join azure_key_vault_key_version as k on k.key_uri_with_version = e.active_key_url
where
lower(d.id) = $1
and d.subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: