turbot/azure_insights

Query: compute_virtual_machine_scale_sets_for_kubernetes_cluster

Usage

powerpipe query azure_insights.query.compute_virtual_machine_scale_sets_for_kubernetes_cluster

SQL

select
lower(set.id) as scale_set_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(c.id) = $1
and c.subscription_id = split_part($1, '/', 3);