skill

Cost Optimization

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: "optimize Azure costs", "reduce cloud spending", "rightsize resources", "find idle resources", "orphaned disk", "deleted VM still charged", "public IP still charging", "reservation utilization", "Savings Plan coverage", "commitment recommendation", "why is pay-as-you-go still charged". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

Microsoft0+ installsVetted

About

# Azure Cost Optimization

## Quick Reference

| Intent | Workflow | Primary tools | |--------|----------|---------------| | Reduce waste or rightsize | [Optimization](references/optimization.md) | Cost and Resource Graph tools | | Review commitments | [Commitments](references/commitments.md) | `list_benefit_utilization`, `list_reservation_transactions`, `get_benefit_recommendations` |

## When to Use This Skill

Use for waste, rightsizing, and commitments.

## MCP Tools

Use cost and Resource Graph tools for optimization and benefit tools for commitments. Validate queries. Fallback: [API mappings](references/tool-fallback.md).

## Workflow

1. Confirm scope, period, currency, and commitment intent. 2. Load only the matching workflow above. 3. Never transform MCP results in a shell or interpreter; request validated server-side projection, aggregation, or bounded follow-up queries. 4. Separate measured cost, reported savings, and qualitative opportunities. 5. Recommend changes only; do not delete, resize, purchase, or deploy resources.

## Error Handling

| Error | Action | |-------|--------| | Access denied | Name the scope and permission. | | Multiple currencies | Group and report each currency separately. | | Missing evidence | State the gap; do not invent values. | | Server error | Retry once; then report the trace ID. |

Install

Run this command

git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-optimization ~/.claude/skills/

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Clone the repository and copy the `.github/plugins/azure-cost/skills/cost-optimization` folder into your Claude skills directory. Compatible with Claude Code, Cursor, Codex, and any Agent Skills-compatible agent.

View source
License: MITBy Microsoft

Frequently asked questions

What is the Cost Optimization skill?

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: "optimize Azure costs", "reduce cloud spending", "rightsize resources", "find idle resources", "orphaned disk", "deleted VM still charged", "public IP still charging", "reservation utilization", "Savings Plan coverage", "commitment recommendation", "why is pay-as-you-go still charged". DO NOT USE FOR: cost spikes, forecasts, pricing e…

How do I install Cost Optimization?

Run this in your terminal:

git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-optimization ~/.claude/skills/
Which AI tools does Cost Optimization work with?

It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.

Who made Cost Optimization?

Microsoft, released under the MIT license.

Is Cost Optimization free?

Yes, it is free to use under the MIT license.

Related assets

More curated picks in Finance & Accounting.

All Cost Optimization alternatives →
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.claude/skills/
Cost Analysis
Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: "Azure cost breakdown", "most expensive resources", "why did my bill increase", "…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/skills/azure-compute ~/.claude/skills/
Azure Compute
Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, li…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/skills/azure-app-onboard ~/.claude/skills/
Azure App Onboard
End-to-end orchestrator: from a business idea, app idea, or existing app to running Azure deployment with cost estimates and pre-deploy approval. Anal…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/skills/azure-resource-lookup ~/.claude/skills/
Azure Resource Lookup
List, find, and show Azure resources across subscriptions or resource groups. Handles prompts like "list the websites in my subscription", "list my we…0+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/microsoft/azure-skills && cp -r azure-skills/.github/plugins/azure-cost/skills/cost-governance ~/.claude/skills/
Cost Governance
Govern Azure costs with budgets, alerts, tags, and policy restrictions. WHEN: "Azure budget health", "configured budget overrun", "list Azure budgets"…0+
skillclaude
Generates professional PDF invoices with line items, tax, totals, branding.
Invoice Generator Skill
Generates professional PDF invoices with line items, tax, totals, branding.0+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Finance & Accounting