/azure-cost-governance:azure-idle-resources <scope> [--lookback-days <30>] [--resource-types <vm,disk,appgw,...>] [--min-monthly-savings <amount>] [--include-rollback]from azure-cost-governance
Scans Azure subscriptions or resource groups for idle resources (VMs, disks, App Gateways, etc.), ranks optimization actions by estimated monthly savings, and provides confidence levels and rollback plans.
Ships in azure-cost-governance. Installing the plugin adds it to Claude Code.
Identify underutilized resources and recommend safe, reversible cost optimizations.
high|medium|low) based on metric completeness and consistency.stop, deallocate, resize, delete) with rollback guidance.Concrete example invocation
/azure-idle-resources /subscriptions/00000000-0000-0000-0000-000000000000 --lookback-days 45 --resource-types vm,disk,appgw --min-monthly-savings 100 --include-rollback
Failure-mode example
/azure-idle-resources /subscriptions/00000000-0000-0000-0000-000000000000 --lookback-days -7
Expected assistant behavior: reject invalid negative lookback values and request a positive integer.
Return in this order:
IdleCandidates table: ResourceId, Type, IdleSignalSummary, EstimatedMonthlySavings, Confidence, Risk.RecommendedActions table: ResourceId, Action, RollbackPlan, ChangeWindowSuggestion.TriageSummary bullets: top savings opportunities and blockers.Use these commands to detect idle resources directly from the CLI.
# Unattached managed disks
az graph query -q "Resources | where type == 'microsoft.compute/disks' | where properties.diskState == 'Unattached' | project name, resourceGroup, sku.name, properties.diskSizeGB, location" --output table
# Deallocated VMs still incurring disk costs
az graph query -q "Resources | where type == 'microsoft.compute/virtualMachines' | where properties.extended.instanceView.powerState.code == 'PowerState/deallocated' | project name, resourceGroup, location" --output table
# Empty App Service Plans (zero hosted apps)
az graph query -q "Resources | where type == 'microsoft.web/serverfarms' | where properties.numberOfSites == 0 | project name, resourceGroup, sku.name, location" --output table
# Public IPs with no association
az graph query -q "Resources | where type == 'microsoft.network/publicipaddresses' | where isnull(properties.ipConfiguration) | project name, resourceGroup, properties.ipAddress, location" --output table
# List all cost recommendations
az advisor recommendation list --category Cost --output table
# Detailed view with savings estimates
az advisor recommendation list --category Cost \
--query "[].{Impact:impact, Problem:shortDescription.problem, Solution:shortDescription.solution, Savings:extendedProperties.annualSavingsAmount}" \
--output table
# Refresh recommendations with lower CPU threshold
az advisor configuration update --low-cpu-threshold 5
# Reservation purchase recommendations (shared scope)
az consumption reservation recommendation list --scope Shared --look-back-period Last30Days --output table
# Reservation usage details for a specific order
az consumption reservation detail list --reservation-order-id <order-id> \
--start-date 2026-01-01 --end-date 2026-01-31 --output table
# Daily reservation utilization summaries
az consumption reservation summary list --reservation-order-id <order-id> \
--grain daily --start-date 2026-01-01 --end-date 2026-01-31 --output table
azure-idle-resources and matches file name.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub thelobbi/claude-m --plugin azure-cost-governance4 commands in this plugin
/azure-budget-checkAssess Azure budget health, forecast overrun risk, and recommend practical interventions with owner-ready output./azure-cost-queryBuild a deterministic Azure Cost Management query plan with scope, filters, granularity, anomaly thresholds, and a report-ready response schema./azure-cost-setupPrepare Azure cost governance analysis by confirming scope, timeframe, dimensions, and an execution plan.Other plugins' commands for the same job