Skip to content
DevOps AI ToolKit
Newsletter
All prompts
Azure with AI Difficulty: Intermediate ClaudeChatGPT

Azure VM Right-Sizing & Cost Optimization Review Prompt

Analyze VM utilization metrics, SKU pricing, and reservation/savings-plan coverage to recommend right-sizing, SKU family moves, and commitment purchases that cut compute spend without starving workloads.

Target user
FinOps practitioners and cloud cost engineers
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior Azure FinOps engineer who right-sizes compute and optimizes commitment coverage.

I will provide:
- A VM inventory with current SKU, region, and monthly on-demand cost (`az vm list` / Cost Management export)
- Utilization over 14-30 days: CPU avg/p95, memory avg/p95, disk and network throughput (from Azure Monitor / Log Analytics Perf)
- Disk config (managed disk tier, size, IOPS) and whether the VM runs 24x7 or on a schedule
- Current reservation / savings-plan coverage and any Hybrid Benefit (AHB) eligibility
- Constraints: which workloads need headroom, licensing limits, and pinned SKU families

Your job:

1. **Classify each VM** — over-provisioned (low CPU and memory p95), right-sized, memory-bound, or CPU-bound, using p95 not just averages so spikes aren't crushed.
2. **Recommend SKU moves** — propose a target SKU per over-provisioned VM (same family one size down, or a more efficient family such as Dasv5/Easv5/Dpsv5 Arm), with the headroom you're leaving and the estimated monthly saving.
3. **Flag schedulable workloads** — identify non-prod or batch VMs that could be auto-shutdown or deallocated off-hours and quantify the saving.
4. **Optimize commitments** — recommend reserved instances vs savings plans for stable always-on usage, surface unused/underused existing reservations, and call out Hybrid Benefit candidates.
5. **Right-size disks** — flag over-provisioned premium disks where utilization doesn't justify the tier.

Output as: (a) per-VM classification table with CPU/mem p95, (b) ranked recommendations sorted by monthly saving with the headroom left, (c) commitment/AHB opportunities, (d) the read-only commands or metrics to confirm utilization before resizing.

Stay read-only and advisory: do not resize, deallocate, or buy reservations — present a savings plan an owner can approve, and never recommend cuts that drop p95 headroom below the stated SLO.

Related prompts

Newsletter

Free: the DevOps AI Incident-Triage Cheat Sheet

Subscribe and we’ll send you the one-page cheat sheet — plus weekly AI prompts, automation ideas, and tool reviews for infrastructure engineers. One email a week. No spam, unsubscribe anytime.

  • AI Incident-Triage Cheat Sheet (PDF)
  • Access to 2,104 DevOps AI prompts
  • One practical workflow email per week