get_azure_vm_rightsizing
Identify idle and underutilized Azure VMs using CPU metrics, calculate real cost savings, and recommend deallocation or downsizing.
Instructions
Find idle and oversized Azure VMs from Azure Monitor CPU, with real dollar cost.
Idle VMs (very low average CPU and a low peak) are deallocate/delete candidates. Underutilized VMs (low average but some real peak) are downsize candidates. Bursty VMs (high peak) are left alone. Per-VM monthly cost is joined from Cost Management so the savings are real, not a guess. This is the Azure parallel of nable's idle-EC2 and rightsizing engines.
Args: subscription_id: A single Azure subscription. None = all configured subs. lookback_days: CPU history window for the analysis (default 14). limit: Max VMs to return, highest savings first (default 100). max_vms_scanned: Cap on how many VMs (costliest first) get a CPU-metrics call, so a large estate does not hang on hundreds of serial requests (default 200).
Examples: - "vm rightsizing" - "Show me oversized Azure VMs we can downsize" - "Which Azure VMs are idle and wasting money?" - "Azure rightsizing opportunities for the last two weeks"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| lookback_days | No | ||
| max_vms_scanned | No | ||
| subscription_id | No |