
Leaving idle Azure VMs running around the clock is one of the easiest ways to inflate a cloud bill. Virtual machines often outlive the projects, tests, or shifts they were built to support. However, not every quiet instance needs the same fix. You must distinguish between three distinct compute patterns: machines that are completely idle, machines that are chronically underutilised, and machines that only sit idle during specific hours each day. By matching each pattern in Azure Monitor and Azure Cost Management to the right remedy, your team can remove waste without breaking production workloads.
Key takeaways
- Three distinct fixes: Address compute waste by matching 3 specific patterns to their remedies: deallocate idle instances, resize underutilised ones, and schedule auto-shutdowns for part-time machines.
- Pro-rata off-hours calculation: Estimate the cost of daily idle windows by multiplying the machine’s on-demand compute and licence cost by the idle hours divided by 24.
- Post-change verification: Always confirm workload roles with the resource owner first, and monitor performance metrics for 1 full week (7 days) after making any change.
Idle Azure VMs, underutilised VMs and part-time VMs
Before you touch any virtual machine settings, you need to classify the problem accurately. Treating every low-usage instance the same way causes outages or leaves unnecessary charges on your invoice. In practice, wasted compute capacity in Azure falls into three categories.

First, there are idle Azure VMs. Over the complete days of an observation window, these machines show almost no processor or network activity. They might be abandoned test boxes, completed proofs of concept, or leftover migration targets. Because they do no active work, the right action is to deallocate them after confirming their status.
Second, you will find underutilised virtual machines. These instances run active workloads, so you cannot turn them off. However, their peak CPU percentage and hourly network traffic stay well below the capacity of their current SKU. Instead of stopping them, you resize them to a smaller instance type that fits their real demand.
Third, many environments have part-time virtual machines. On the complete days of your tracking window, these instances work hard during business shifts, but sit idle at the exact same hours every day. For example, a development server might sit completely unused overnight. Rather than paying for 24 hours of compute, you configure an auto-shutdown schedule to cover the unused hours.
Reading the CPU and network thresholds
To separate these three cases, you must inspect both performance metrics and billing records. You can gather performance telemetry directly from the Azure Monitor metrics explorer and pair it with spend data in Azure Cost Management.
When evaluating whether a machine is idle or underutilised, look at the complete days of your review window. You need three specific numbers from the host metrics: the maximum CPU percentage, the maximum network megabytes in per hour, and the maximum network megabytes out per hour. You then compare those peaks against the baseline condition thresholds that define an idle or oversized machine for your environment.
Look at maximum peaks across the window rather than simple averages. An average can hide a brief, critical workload spike that requires a larger machine. If the peak CPU percentage and the hourly inbound and outbound network volumes never cross your low-usage threshold over several complete days, the machine is a candidate for deallocation or downsizing.
Next, check Azure Cost Management to see what that unused capacity costs. For a continuously idle or underutilised VM, the financial exposure is the combined compute and licence cost of the virtual machine over those complete days. For a machine that sits idle at fixed hours, calculate the affected spend pro rata. Take the VM’s on-demand compute and licence cost, and multiply it by the number of daily idle hours divided by 24.
However, native host metrics and billing data cannot prove everything. By default, Azure Monitor host metrics track CPU and network traffic at the hypervisor level, not guest OS memory usage. Therefore, you must investigate memory consumption, disk I/O requirements, and application-level dependencies before resizing a VM based on CPU and network data alone.
Stopped versus deallocated: what still bills
When you decide to turn off an unused instance, how you stop it determines whether your bill actually drops. Azure has two different powered-off states, and only one of them stops compute charges.
According to Microsoft’s documentation on Azure VM states and billing status, shutting down a machine from inside the guest operating system puts it into the Stopped state, also known as Stopped (Allocated). In this state, the OS is powered down, but the virtual machine remains allocated on the physical host hardware in the data center. Because Azure still holds that hardware slot for you, Azure continues to bill you for compute instance usage and operating system licences.
To stop paying for compute and OS licence rates, the machine must reach the Deallocated state, which appears in the portal as Stopped (Deallocated). When you stop a VM through the Azure portal, the Azure CLI, or the REST API, Azure powers down the instance and releases the lease on the underlying hardware. Consequently, compute and software licence charges stop accruing while the machine remains deallocated.
Even so, deallocating a virtual machine does not reduce its total cost to zero. As noted in the Azure Spot Virtual Machines documentation, you are still charged storage costs for the underlying managed OS and data disks attached to a deallocated VM. In addition, any static public IP addresses or capacity reservations tied to the instance may continue to bill and need separate investigation.
Idle at the same hours every day: auto-shutdown schedules
Not every quiet machine can be deallocated permanently. Build servers, staging environments, and analyst workstations often run during daytime hours and go quiet every evening. When Azure Monitor shows that a VM is consistently idle from a specific start hour to a specific end hour across complete days, a schedule is the safest fix.
You can automate this directly in the portal using the native Azure VM auto-shutdown feature. Under the Operations section of the virtual machine blade, you enable auto-shutdown, specify the daily shutdown time, and select the appropriate time zone. Remember that Coordinated Universal Time (UTC) is the default setting, so verify the time zone against your team’s actual working hours.
When the scheduled time arrives, Azure automatically stops and deallocates the virtual machine, halting compute and licence charges for the rest of the idle window. Furthermore, you can configure the feature to send a notification to an email address or a webhook URL before the shutdown happens. This gives engineers a chance to postpone the stop if they are working late. If the machine also needs to be ready at a fixed hour each morning, you can pair auto-shutdown with an auto-start script or automation task.
Confirm the VM’s role with its owner
Billing exports and metric charts only tell you what a machine did over the last observation window. They cannot tell you why the machine exists or what it might need to do tomorrow. Therefore, you should never deallocate, resize, or schedule a virtual machine without verifying its role with its owner first.

Start by checking resource tags, resource group records, or deployment logs to find the team responsible for the instance. Once you locate the owner, walk through a short verification checklist before making changes:
- Confirm the workload purpose: Ask whether the machine is a legacy test box or a passive disaster recovery node. A warm standby server looks identical to an abandoned VM in Azure Monitor, but turning it off breaks your recovery plan.
- Verify seasonal or batch schedules: An instance that looked unused over a two-week window might run a heavy payroll or reporting job on the last day of the month.
- Check downstream dependencies: Confirm whether other applications rely on a static internal IP, local file share, or background service hosted on that VM. Also check if releasing hardware leases will affect dynamic IP assignments or proximity placement groups.
- Validate off-hours windows: For part-time machines, confirm the exact idle hours with the owner. Make sure overnight maintenance, backups, or virus scans do not run during the proposed shutdown window.
Deallocate, resize or schedule, then watch the metrics
Once the resource owner confirms the workload requirements and recovery needs, you can execute the change and verify the outcome. Follow a structured three-step workflow so that every adjustment is tracked and reversible.

Step 1: Finalise owner sign-off and prerequisites
Before applying the change, double-check that you have a clear rollback path. If you are resizing an underutilised machine, verify that the target VM SKU supports the same disk types, network interface counts, and premium storage capabilities as the current size. Also note that resizing an active VM normally requires a reboot, so schedule the change during an approved maintenance window.
Step 2: Apply the specific fix
Execute the remedy that matches the machine’s usage pattern:
- For an idle VM: Issue a stop command from the Azure portal, CLI, or PowerShell (
Stop-AzVM) and wait until the status explicitly reads Stopped (deallocated). - For an underutilised VM: Select the smaller target SKU in the VM Size settings and apply the resize.
- For a part-time VM: Enable the auto-shutdown schedule for the confirmed idle hours, set the proper time zone, and configure pre-shutdown alerts if requested by the team.
Step 3: Watch the metrics for a week
Your job is not finished when the command succeeds. Watch the virtual machine’s metrics for a full week after the change.
For a resized VM, monitor CPU percentage, network throughput, and application response times over the next seven days. Verify that normal daily peaks do not hit the ceiling of the smaller SKU. For a scheduled VM, check the next week’s metrics and activity logs to confirm that the instance deallocates cleanly at the start of the idle window and restarts without errors when the team returns. Finally, check Azure Cost Management for a deallocated VM to verify that daily compute and licence charges have stopped while accounting for any remaining disk storage costs.
How Binadox helps identify idle and underutilized Azure VMs
Checking performance thresholds and pro-rata costs across dozens of subscriptions manually takes significant time. Binadox is a cloud cost visibility and optimization tool that automates this detection across your Azure compute environment.

For continuously quiet instances, Binadox flags when an Azure virtual machine is idle or underutilised over the complete days of the analysis window. It records the VM’s peak CPU percentage alongside its peak inbound and outbound network traffic in megabytes per hour, showing where those figures sit below the condition thresholds that define an idle or underutilised machine. To clarify the financial impact, it displays the combined compute and licence cost of the VM over those complete days and recommends deallocating an idle VM or resizing an underutilised one after you confirm the workload with its owner and watch the metrics for a week.
In addition, Binadox detects when a virtual machine sits idle at the same hours every day across the complete days of the window. It identifies the exact start and end hours of the daily idle period and the total idle hours per day. It then calculates the affected spend pro rata by multiplying the VM’s on-demand compute and licence cost by those daily idle hours over 24, guiding your team to confirm the hours with the owner, configure an auto-shutdown schedule, and check the next week’s metrics.
Conclusion
Cleaning up idle Azure VMs is rarely about running a script to delete everything with low CPU usage. It is about separating true digital cobwebs from oversized servers and nine-to-five workloads. An instance that does nothing all week needs to be deallocated—not merely stopped inside the guest OS, where the billing meter keeps ticking. Meanwhile, a quiet production machine needs a smaller SKU, and a daytime server just needs a reliable bedtime via an auto-shutdown schedule. Verify the role with the owner, apply the right fix, and watch the metrics for a week so your savings do not turn into a support ticket.
Stop letting cloud spend slip away by taking control of your infrastructure today, where you can start a free trial or book a demo to see automated optimization in action.