azure-cost-optimizer
Analyzes Azure costs and provides optimization recommendations including reserved instances, rightsizing, and unused resources. Use when optimizing Azure spending or analyzing Azure costs.
When & Why to Use This Skill
This Claude skill empowers users to analyze and optimize Azure cloud expenditures through automated cost analysis and actionable recommendations. It identifies waste from unused resources, suggests rightsizing for overprovisioned assets, and provides strategies for leveraging Reserved Instances and Spot VMs to maximize cloud ROI and operational efficiency.
Use Cases
- Cloud Cost Auditing: Perform deep-dive analysis of Azure spending by resource group and service type using CLI-integrated queries to identify primary cost drivers.
- Waste Elimination: Detect and decommission unattached disks, idle virtual machines, and orphaned network interfaces to eliminate unnecessary monthly spend.
- Strategic Rightsizing: Analyze CPU, memory, and DTU utilization metrics to downsize overprovisioned resources while maintaining optimal performance levels.
- Commitment Planning: Evaluate stable workloads for 1-year or 3-year Reserved Instances and Azure Hybrid Benefit to secure up to 72% savings compared to pay-as-you-go pricing.
- Spot Instance Migration: Identify interruptible workloads suitable for Spot VMs to achieve up to 90% cost reductions for batch processing or dev/test environments.
| name | azure-cost-optimizer |
|---|---|
| description | Analyzes Azure costs and provides optimization recommendations including reserved instances, rightsizing, and unused resources. Use when optimizing Azure spending or analyzing Azure costs. |
Azure Cost Optimizer
Quick Start
Analyze Azure costs and implement optimization strategies to reduce spending while maintaining performance.
Instructions
Step 1: Analyze current costs
# View cost analysis
az cost-management query \
--type Usage \
--dataset-aggregation name="PreTaxCost" function="Sum" \
--dataset-grouping name="ResourceGroup" type="Dimension"
# View costs by service
az cost-management query \
--type Usage \
--dataset-grouping name="ServiceName" type="Dimension"
Step 2: Identify optimization opportunities
Check for unused resources:
- Unattached disks
- Idle virtual machines
- Unused public IPs
- Orphaned network interfaces
Review resource utilization:
- VM CPU and memory usage
- Database DTU utilization
- Storage account access patterns
- Network bandwidth usage
Step 3: Implement cost-saving measures
Reserved Instances:
- 1-year or 3-year commitments
- Up to 72% savings vs pay-as-you-go
- Recommended for stable workloads
Azure Hybrid Benefit:
- Use existing Windows Server licenses
- Use existing SQL Server licenses
- Significant cost savings
Rightsizing:
- Downsize overprovisioned VMs
- Adjust database tiers
- Optimize storage tiers
Spot VMs:
- Up to 90% savings
- Suitable for interruptible workloads
- Batch processing, dev/test
Advanced
For detailed information, see:
- Pricing Models - Azure pricing tiers and models
- Reserved Instances - RI recommendations and strategies
- Rightsizing - VM and resource sizing guidance