**ANALYSIS SKILL** — Identify cost savings across Azure subscriptions via cost + utilization analysis. WHEN: "optimize Azure costs", "reduce Azure spending", "find cost savings", "rightsize VMs", "find orphaned resources", "optimize Redis costs". DO NOT USE FOR: deploying (azure-deploy), general diagnostics (azure-diagnostics), security issues (azure-compliance).
70
85%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data.
Use this skill when the user asks to:
costmanagement + resource-graph extensions, azqr installed, Cost Management Reader + Monitoring Reader + Reader roles)output/cost-query-result<timestamp>.json)output/costoptimizereport<timestamp>.md and the audit trail JSONazure-deploy), security issues (use azure-compliance), general diagnostics (use azure-diagnostics)High-level step list (full procedure in
references/workflow-steps.md):
| # | Step | Reference |
|---|---|---|
| 0 | Validate prerequisites (Azure CLI, costmanagement + resource-graph extensions, azqr, RBAC) | workflow-steps.md |
| 1 | Load Azure cost-optimization best practices via mcp_azure-mcp_get_azure_bestpractices | workflow-steps.md |
| 1.5 | (Conditional) Redis-specific analysis branch | azure-redis.md |
| 1.6 | (Redis branch) Choose analysis scope (subscription / prefix / tenant-wide) | azure-redis.md |
| 2 | Run Azure Quick Review (extension_azqr) for orphaned-resource discovery | azure-quick-review.md |
| 3 | Discover resources cross-subscription via Azure Resource Graph | azure-resource-graph.md |
| 4–9 | Cost queries, pricing validation, metrics, report, audit trail, cleanup | detailed-workflow-steps.md |
Branching rule: when the user mentions Redis, Azure Cache for Redis, or Azure Managed Redis, follow the Redis-specific path (Steps 1.5 → 1.6 → Redis-only analysis) instead of the general subscription workflow.
The skill generates:
Cost Optimization Report (output/costoptimizereport<timestamp>.md)
Cost Query Results (output/cost-query-result<timestamp>.json)
📋 Reference: Read references/best-practices-notes.md for data classification labels, best practices, common pitfalls, and safety requirements.
Load these on demand — do NOT read all at once:
| Reference | When to Load |
|---|---|
references/auth-best-practices.md | Auth Best Practices |
references/azure-quick-review.md | Azure Quick Review |
references/azure-redis.md | Azure Redis |
references/azure-resource-graph.md | Azure Resource Graph |
references/workflow-steps.md | Steps 0–3: prerequisites, best practices, azqr, resource discovery |
references/detailed-workflow-steps.md | Steps 4-9: cost queries, pricing, metrics, report, audit, cleanup |
references/best-practices-notes.md | Data classification, best practices, pitfalls, safety |
05d7617
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.