Issue with Azure VM not shutting down properly

Farouk Valentin 0 Reputation points
2024-02-01T12:28:40.3766667+00:00

I was shutting down my Windows Azure VM directly from the system, not just my session, and Azure Portal confirmed that it was shut down. However, my credit continued to be used up. Can anyone help me understand why this is happening? Thank you.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,721 questions
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
360 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,351 Reputation points Microsoft Employee
    2024-02-01T18:14:40.2133333+00:00

    Hello, @Farouk Valentin ! Cost Management will tell you what you were billed for on a particular resource and why. I'll go into more detail below. If anything doesn't seem right, you can create a billing support ticket or leave a comment below and we'd be happy to help!

    Why was I billed for my VM even after it was deallocated?

    There are other costs associated with your VM other than just compute time. In particular, storage costs can continue to accumulate after your VM has been deallocated because you are continuing to store data to use later. In your resource group, go to Cost Management > Cost analysis to see what you are being billed for.

    222004-image.png

    What's the difference between Stopped and Deallocated?

    There are many reasons why you may want to temporarily power down a VM, like restarting after installing software. Stopped(Allocated) is simply the PoweredOff state. While powered off, Azure keeps your hardware reserved so you can resume using your VM. Since Azure is reserving the hardware for you, you will continue to be billed. To turn off your VM and release your hardware back to Azure so it can be used by others you need to set the VM to the Stopped(Deallocated) state: 137139-image.png

    For additional information, you can read our documentation on billing states: https://docs.microsoft.com/en-us/azure/virtual-machines/states-billing Understanding costs

    These are some great resources to better understand costs and billing:

    For an exact amount billed, you can view your billing usage and charges . In addition, you can set alerts , budgets , and more with cost management features.

    https://docs.microsoft.com/en-us/azure/cost-management-billing/understand/plan-manage-costs

    Creating a billing support request

    In the Azure portal, you can open a billing support request by going to Help + support > New support request > Billing and then complete the wizard.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A! User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.