Azure Advisor Cost Optimization skill for Claude
Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: \"find unused Azure resources\", \"what resources am I paying for but no longer using\", \"idle-resource savings\", \"historical idle-resource savings\", \"are these idle resources safe to delete\". Generic Cost, other subcategories, and cross-category requests use azure-advisor.
Azure Advisor Cost Optimization SKILL.md
The full skill file from microsoft/skills (MIT).
Azure Advisor Cost Optimization
Use existing Advisor tools only with category=Cost and sub-category=IdleResources.
Never substitute billing, inventory or runtime KQL. Preserve selected scope, type and tenant;
pass supplied identities unchanged.
Shared rules
Use only returned structured retail savings; MCP owns calculations. Never annualize,
reconstruct amounts from dates, or fall back to legacy annualSavingsAmount/savingsAmount
or raw pricing. Cost is accumulated Advisor cost, not monthly spend or yearly savings.
Completed reports use Realized savings.
Every monetary answer or proposal visibly shows Currency and Pricing basis: <basis>
from the calculated measure or its documented source. Missing amounts are Unavailable,
not zero; numeric zero stays zero. Preserve a known basis even when amounts are missing.
Potential savings depend on validating and deleting eligible resources. Estimates do not
establish inactivity or safe deletion and never authorize remediation.
Workflow
Before each flow, read its matching references below, including when using supplied results. Before scoped calls, read Scope resolution. Reuse already loaded references. If a required file is unavailable, report it and stop the affected flow.
Use the matching scenario guidance; Reference index.
Quick reference
| Flow | Required reference |
|---|---|
| Discovery and type expansion | Workflow |
| Counts, savings field mapping and pricing-source interpretation | Output and savings |
| Tables and selected resources | Table format |
| Completed/historical reports | Lifecycle |
| State changes | State updates |
| Selection/remediation handoff | Selection |
| Explicit prevalidation/safety checks | Selection |
| Filters/errors | Tools and recovery |
| Routing examples | Examples |
Response guidance
Use shared headings and column order across models, with documented scope/lifecycle variations.
Visibly show results/proposals before dependent questions; reasoning, tool output or text
inside ask_user does not count. Ask directly for missing input.
How to install Azure Advisor Cost Optimization
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit microsoft/skills/.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization#main ~/.claude/skills/azure-advisor-cost-optimizationCodex
npx degit microsoft/skills/.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization#main ~/.codex/skills/azure-advisor-cost-optimizationClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Azure Advisor Cost Optimization skill do?
Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: \"find unused Azure resources\", \"what resources am I paying for but no longer using\", \"idle-resource savings\", \"historical idle-resource savings\", \"are these idle resources safe to delete\". Generic Cost, other subcategories, and cross-category requests use azure-advisor.
+How do I install Azure Advisor Cost Optimization in Claude Code?
Copy the skill folder into ~/.claude/skills/azure-advisor-cost-optimization, for example with "npx degit microsoft/skills/.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization#main ~/.claude/skills/azure-advisor-cost-optimization". Claude Code loads it automatically and uses it when a task matches.
+Does Azure Advisor Cost Optimization work with ChatGPT or Codex?
Yes. Azure Advisor Cost Optimization uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/azure-advisor-cost-optimization. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Azure Advisor Cost Optimization free?
Azure Advisor Cost Optimization is published on GitHub by microsoft under the MIT license, which allows free use.