Not Your Dad's IT

Updated Solutions to Classic Challenges

A personal website dedicated to helping IT professionals review where we've been, where we are, and maybe where we are headed.

  • Blog
  • About
  • Disclaimer
Azure_Logo_01.PNG

Azure Tip - Azure VM: Stopped (still incurring compute charges)

June 13, 2018 by Nathaniel Avery in Tip

I stumbled across an interesting Microsoft Azure issue as I examined my monthly bill.  My bill wasn't outrageous, but it was higher than expected.  As I dug deeper, I discovered the problem.  I created a VM that was stopped, however, it was still being billed.  The exact message was "Stopped (still incurring compute charges)."  Naturally, I was confused.  How could I be billed for a stopped VM?

Stopped_Still_Incuring_Charges_01_edited.png

The Problem

Microsoft has two ways to stop a VM.  One way releases resources, the other does not.  Powering down the VM from within the OS does NOT give back the resources, so billing continues.  Microsoft says you will "continue to accrue charges for the VM’s cloud service and the storage needed for the VM’s OS disk and any attached data disks. " To avoid billing, you must either use the API, or the resource manage interface to shutdown the vm.

Stopped_Still_Incuring_Charges_07.PNG

VMs shut down via the interface will lack the "Stopped (but still incurring compute charges)" warning. 

Stopped_Still_Incuring_Charges_06.PNG

This should serve as a reminder to always watch billing statements closely.  Moreover, review in fine detail what you are charged for and how.  While there are similarities between the vendors, not everything is the same, especially when it comes to billing practices.

References

MS lists the differences between the stopped states in greater detail here: (https://blogs.technet.microsoft.com/gbanin/2015/04/22/difference-between-the-states-of-azure-virtual-machines-stopped-and-stopped-deallocated/)

Another post describes when you would one to do one vs the other (https://blogs.technet.microsoft.com/uspartner_ts2team/2014/10/10/azure-virtual-machines-stopping-versus-stopping-deallocating/)

The Build Azure blog has offers really cool instructions on how to schedule shutdowns for your VMs.  It's definitely worth a read. (https://buildazure.com/2017/03/16/properly-shutdown-azure-vm-to-save-money/)

 

June 13, 2018 /Nathaniel Avery
Azure, costs, cloud
Tip
  • Newer
  • Older

Powered by Squarespace