can i close Azure VM's disk to save cost?

Huang, Winston-HR 320 Reputation points
2023-12-15T06:18:27.84+00:00

my azure VM and it's status is Stopped (deallocated). but when i check resource cost list, i found the data disk(P30) of that VM on cost list. so, any way to save cost for the data disk?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,468 questions
{count} votes

Accepted answer
  1. v-vvellanki-MSFT 4,920 Reputation points Microsoft External Staff
    2023-12-15T06:43:20.35+00:00

    Hi @Huang, Winston-HR,

    Thanks for contacting Microsoft Q&A platform.
    Disk resources of a VM in Azure can't be deallocated. If the VM is deallocated only the VM compute costs are affected.
    The reason is: The disk resources are required for the VM (OS disk, data disk) and occupy space/resources in Azure even if the VM is stopped/deallocated.

    If you want to save costs on the data disk while the VM is stopped, you have a few options:

    1.      If the current data disk is of high performance or has more capacity than needed, you can resize it to a smaller and cheaper SKU.

    2.      If you don't need the data disk and its contents, you can take a snapshot of the disk for backup purposes and then delete the data disk.

    You can perform all these steps through the Azure Portal or using Azure CLI.
    Hope this helps you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 118.8K Reputation points MVP
    2023-12-15T06:47:06.3266667+00:00

    Hi @Huang, Winston-HR ,

    if the Azure VM is deallocated the disk is still there and is taking up space in the data center. For that reason you will be charged for the disk even if the VM is deallocated.

    The only option is to delete the data disk to save the cost.

    You can lower the cost if you buy a Disk Storage reservation for the P30 data disk: Reduce costs with Azure Disks Reservation


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


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.