azure-cost-optimization
Optimize Azure Costs and Reduce Cloud Spending
This skill analyzes Azure subscriptions to identify wasted spending and provides actionable recommendations to reduce cloud costs. It queries actual usage data, finds orphaned resources, and suggests rightsizing opportunities.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "azure-cost-optimization". Analyze Azure costs and find savings
Expected outcome:
- Cost Optimization Report generated with: Total Monthly Cost identified, 3 orphaned resources found ($150/month savings), 5 rightsizing opportunities identified ($400/month potential savings), Priority recommendations provided with specific VM size alternatives
Using "azure-cost-optimization". Optimize Redis spending
Expected outcome:
- Redis Cost Analysis: 5 caches analyzed, 1 failed cache identified ($300/month savings), 2 Premium tiers recommended for downgrade ($350/month savings), Detailed action steps provided for each recommendation
Security Audit
Low RiskStatic analysis detected 156 potential security issues including external command execution patterns, filesystem access, and hardcoded URLs. After evaluation, all findings are false positives: backticks and PowerShell commands appear in code examples within markdown documentation (not executable code), path traversal sequences are in template examples (not actual filesystem operations), and URLs reference legitimate Azure pricing pages. This is a legitimate Azure cost optimization skill from Microsoft with no malicious intent detected.
High Risk Issues (1)
Medium Risk Issues (2)
Low Risk Issues (1)
Risk Factors
⚙️ External commands (135)
📁 Filesystem access (2)
🌐 Network access (7)
Quality Score
What You Can Build
DevOps Engineer Reducing Cloud Spend
A DevOps engineer wants to reduce monthly Azure spending by identifying unused resources and rightsizing over-provisioned VMs. The skill runs a comprehensive analysis and generates a detailed cost optimization report with specific action items.
Finance Team Cost Analysis
Finance team members need visibility into Azure spending across multiple subscriptions. The skill provides actual cost data from Azure Cost Management API, breakdown by resource, and identifies cost allocation opportunities through tagging.
Cloud Architect Optimization Review
A cloud architect performs quarterly infrastructure reviews. The skill generates comprehensive reports comparing current spending against historical data, identifies trends, and recommends Reserved Instance opportunities.
Try These Prompts
Use the azure-cost-optimization skill to analyze my Azure subscription and find cost savings opportunities. Focus on identifying orphaned resources and areas where I'm overspending.
Run a full cost optimization analysis on my Azure subscription <SUBSCRIPTION_ID>. Query actual costs from the last 30 days, check VM and service utilization metrics, and generate a detailed report with prioritized recommendations including estimated savings.
Analyze Redis and Azure Cache for Redis costs in my subscription. Find failed caches to delete, identify Premium tiers that can be downgraded, and generate a Redis cost optimization report.
Query utilization metrics for my Azure VMs over the past 14 days and recommend rightsizing opportunities. Compare current VM sizes to actual CPU and memory usage patterns.
Best Practices
- Always query actual costs from Azure Cost Management API rather than estimating
- Validate pricing from official Azure pricing pages and account for free tier allowances
- Save cost query results for audit trail and historical comparison
Avoid
- Assuming costs without querying actual data from Azure Cost Management
- Ignoring free tier allowances that may explain low or zero costs
- Executing destructive operations without explicit approval and testing in non-production first