Why this matters
GPU virtual machines on Azure are the fastest way to turn a small bill into a large one. A single forgotten NC or ND series VM bills every hour it is allocated, whether anyone is training anything or not. Stopping the OS from inside the machine does not help. Only a deallocated VM stops compute charges.
AI workloads also behave differently from web apps. Demand comes in bursts: a training run, a batch of embeddings, a week of experiments. Teams tend to size for the peak and leave everything running for the quiet weeks in between.
The good news is that most GPU waste on Azure comes from a short list of causes: idle machines, oversized SKUs, jobs that don't need a GPU at all, and pricing models that don't match the workload. Each one has a concrete fix.
Before you start
You need Reader access on the subscriptions that run GPU work, plus Cost Management access to see spend. Write down who owns each GPU workload. If nobody can name an owner for a VM, that is already a finding.
Pull a baseline first. In Cost Management, open cost analysis, group by service name and then by resource, and filter to the last full month. Note which GPU VMs, Azure Machine Learning compute clusters, Azure OpenAI deployments and AKS node pools carry the most spend. Save that view so you can compare against it later.
Check tags too. If your GPU resources don't carry an owner, environment and project tag, fix that before anything else, because you can't cut what you can't attribute. Also confirm your current GPU quota per region in the Quotas page. Quota is your hard ceiling, and most teams have never looked at it.
How to do it
Work from the cheapest wins to the most involved. Start by finding machines that are allocated but doing nothing, then fix how compute gets created, then deal with pricing models. The steps below follow that order.
Keep changes small and reversible. Move one workload at a time, note the before and after cost, and keep the old setup available for a week in case a job behaves differently on the new one. Training jobs that run for days are the ones where a bad change hurts most, so touch those last.
- Inventory every GPU resource. List all GPU VMs, Azure Machine Learning compute, AKS GPU node pools and Azure OpenAI deployments across your subscriptions. Record the owner, environment and purpose for each. Anything without an owner goes on a review list.
- Deallocate idle machines. Find GPU VMs with no recent activity and deallocate them from the portal or CLI, not from inside the OS. Delete orphaned disks and public IPs left behind. Snapshot first if you aren't sure the machine is truly unused.
- Set auto-shutdown and auto-scale to zero. Turn on auto-shutdown for development GPU VMs. For Azure Machine Learning compute clusters, set minimum nodes to zero and a short idle time before scale-down. For AKS, enable the cluster autoscaler on GPU node pools so they shrink when no pods need them.
- Right-size the GPU SKU. Check GPU memory and utilization during real jobs. If a workload uses a fraction of the card, move to a smaller GPU size or a fractional option. If it is starved waiting on data, fix the input pipeline before paying for a bigger SKU.
- Move interruptible work to Spot VMs. Use Azure Spot VMs for training jobs that checkpoint regularly and can restart. Save checkpoints to storage often so an eviction costs minutes, not hours. Keep latency-sensitive inference on regular capacity.
- Match the pricing model to the workload. For steady, always-on GPU use, evaluate reservations or an Azure savings plan for compute after usage has been stable for a couple of months. Leave bursty experimental work on pay-as-you-go or Spot. Commit only to your reliable baseline.
- Limit quota and add budgets. Lower GPU quota in regions and families you don't use so a mistake can't scale far. Create budgets in Cost Management scoped to GPU resource groups, with alerts at several thresholds sent to the workload owner, not a shared inbox.
- Review weekly for the first month. Open your saved cost analysis view each week, compare against baseline, and chase any new GPU resource. After a month, drop to a monthly review and update owners and tags as projects change.
How to check it worked
Go back to the saved cost analysis view from your baseline and compare the same period. Group by resource and confirm that the GPU VMs you changed dropped in cost, and that nothing new appeared to absorb the spend. Cost data can lag, so give it a few days before judging.
Then check usage, not just cost. For GPU VMs, look at GPU utilization in Azure Monitor or the metrics your workload exports. A GPU that sits well below full use during a job points to a data loading bottleneck or an oversized SKU. For Azure Machine Learning clusters, check that node counts drop to zero between jobs.
Finally, test your guardrails. Create a throwaway VM in a sandbox, leave it running past the auto-shutdown time, and confirm that it stops. Trigger a budget alert at a low threshold and confirm the right person receives it. A control you haven't tested is a hope, not a control.
Mistakes to avoid
The most common mistake is stopping a VM from inside the guest OS and assuming billing stopped. It didn't. Use deallocate in the portal, CLI or an automation. Also remember that attached managed disks and public IPs keep billing while a VM is deallocated, so delete what you truly don't need.
The second is buying commitments too early. A reservation or savings plan on a GPU family you later abandon is money locked in. Wait until usage is steady for a couple of months, and commit only to the baseline you are sure about, not the peak.
The third is assuming everything needs a GPU. Preprocessing, data cleaning, orchestration and light inference often run fine on CPU. Putting them on a GPU node just because it was already there is expensive habit.
Last, don't forget quota is regional. Teams sometimes request large quota in a region just to be safe, and that makes a runaway deployment easy. Ask for what you need, and review it each quarter. If you'd rather have someone else do the first pass, Cloudverg offers a Cloud cost audit at $4,500/month (fixed scope, two weeks, renews monthly until cancelled), a read-only review that includes rightsizing, idle resource findings and a commitment plan. It is one option alongside doing the work in house.
Frequently asked questions
Does stopping a GPU VM in Azure stop the charges?
Only if the VM is deallocated. Shutting down from inside the operating system leaves it allocated, so compute billing continues. Deallocate from the portal, CLI or an automation, and remember that disks and public IPs still bill.
Are Azure Spot VMs a good fit for GPU training?
Yes, for jobs that checkpoint often and can restart after an eviction. Spot capacity can be reclaimed with little warning, so it is a poor choice for latency-sensitive inference or long jobs with no saved state.
When should I buy a reservation for GPU VMs?
After usage on a specific GPU family has been steady for a couple of months. Commit only to the baseline you are confident about. Buying early risks paying for a GPU family your team later moves away from.