turbot/azure_insights

Query: kubernetes_clusters_for_compute_virtual_machine_scale_set

Usage

powerpipe query azure_insights.query.kubernetes_clusters_for_compute_virtual_machine_scale_set

SQL

select
lower(c.id) as cluster_id
from
azure_kubernetes_cluster c,
azure_compute_virtual_machine_scale_set as set
where
lower(set.resource_group) = lower(c.node_resource_group)
and lower(set.subscription_id) = lower(c.subscription_id)
and lower(set.id) = $1
and lower(set.subscription_id) = split_part($1, '/', 3);