aks-cost-analysis

Installation
SKILL.md

AKS Cost Analysis

Break down AKS spend by cluster, namespace, and utilization bucket. Surfaces the highest-spend clusters and namespaces, and how much spend sits in idle vs active workloads.

Prerequisite: The AKS Cost Analysis add-on must be enabled on the cluster(s). When the add-on isn't enabled, query_aks_costs returns no cost data. See Step 1 for the enablement check, and Enable AKS Cost Analysis for setup instructions.

Run the ARG query through the generate → validate → execute workflow. The Step 1 query is ready to run, but pass it to validate_query first — it confirms the syntax and property paths before you spend a call on execute_query. If you need to adapt it to a different resource type or field, draft it with generate_query (a natural-language prompt), then validate and execute.

Step 1: Verify Clusters Exist and Cost Analysis is Enabled

First, confirm AKS clusters exist on the scope. Call execute_query with this Azure Resource Graph query (replace the <sub-id-…> placeholders with the target subscription IDs):

Installs
1
GitHub Stars
1
First Seen
6 days ago