Loading...

Cost Optimization options for unattached Azure Managed Disks

Cost Optimization options for unattached Azure Managed Disks

Background

Users often find themselves in a situation where they have managed disks in one or more subscriptions that are no longer attached to a Virtual Machine (VM). These disks may have been attached to a VM in the past that has now either been deleted, or these disks were detached from the VM for some other reason. The user would continue to pay for these unattached disks, whether they need them or not.

 

Solution

A common issue users face is that either the owners of the disks cannot be identified, or it is not possible to simply delete the disks because their content must be kept around in case it is needed.


There are a few solutions that the user can employ (listed below in order of complexity – Low to High).

  1. Delete the unattached disk.
  2. Change the performance tier of the disk to the lowest one possible.
  3. Take a snapshot of the disk and delete the original one.
  4. Export the disk as a VHD to hot or cold Blob storage and delete the original disk.

Identifying unattached disks, and deleting them, if need be, can be accomplished by reviewing the following articles.

Let’s explore these options in greater detail.


Delete unattached disks

If you are certain that the unattached managed disks and their data will not be needed, you can choose to identify and delete them by following the steps outlined in the abovementioned articles.

 

This option should be used with great care as deleting a disk is an irreversible process. It would be prudent to backup the data on these disks by utilizing Azure Backup (https://learn.microsoft.com/en-us/azure/backup/backup-managed-disks) or exploring other options discussed in this article.

 

Change the disk’s performance tier

The performance tier of your Azure managed disk determines the IOPS and throughput your managed disk has.


You can change the performance tier of managed disk that is unattached to a lower tier, by reviewing the instructions provided on this page.

For example, you can set the performance tier of a zone-redundant Premium SSD to a locally redundant Standard HDD, which has a lower cost. Please ensure that you review the tradeoffs of changing the tiers and availability settings of the disk.

 

Take a snapshot and delete the disk

A snapshot is a point-in-time backup of an Azure disk. You can take snapshots of both attached and unattached disks, whether they are Operating System or data disks.


If you have an unattached Premium SSD managed disk with a provisioned size of 64GB, you would be paying some cost for that disk. You may only be using 5GB of that disk, but you have to pay for the provisioned size of 64GB. One way to optimize this cost would be to take a snapshot of this disk and store it in the cheapest tier, which would be locally redundant Standard HDD. At the time of this writing these snapshots are charged at $0.05/GB per month for both Standard LRS and ZRS options based on the used portion of the disk.


You can review the managed disk and snapshot pricing at this page.

Once you have created the snapshot, you can choose to delete the managed disk. In case you need to recreate the disk, you can do so from the snapshot.


Please review the following articles for the creation of snapshots and the creation of disks from snapshots.

 

Export the disk to Blob storage and delete the disk

Depending upon the particular situation, this option offers the maximum saving for storing a copy of the unattached managed disks. It is especially well suited if it is unlikely that you will be needing the unattached managed disks frequently. You can choose to export the disk to Blob storage, either hot or cold tier and delete the managed disk.


The following article explains how you can export the managed disk to Blob storage.

Note: If you choose any option besides deleting the managed disks, make sure that you store relevant metadata with the snapshot or blob object which can help you identify the necessary information when you need to recreate the source managed disk. Relevant data could be, but not limited to, business owner’s name, cost center, region and subscription information etc.

Published on:

Learn more
Azure Storage Blog articles
Azure Storage Blog articles

Azure Storage Blog articles

Share post:

Related posts

Update on classic storage account retirement and upcoming changes for classic storage customers

We previously announced that support would end for retired Azure classic storage accounts on 31 August 2024. Now that we are past the retireme...

1 year ago

Azure Elastic SAN for Azure VMware Solution: now Generally Available

Have you been looking to expand your storage on Azure VMware Solution (AVS), but do not need the extra compute performance and the associated ...

1 year ago

Accelerate metadata heavy workloads with Metadata Caching preview for Azure Premium Files SMB & REST

Azure Files previously announced the limited preview of Metadata caching highlighting improvements on the metadata latency (up to 55...

1 year ago

Announcing UNLIMITED Public Preview of Metadata Caching for Azure Premium SMB/REST File Shares

Azure Files is excited to announce the Unlimited public preview of Metadata Caching for the premium SMB/REST file share tier.  Unlimited ...

1 year ago

Azure Backup-SAP HANA DB Backup Delivers More Value at Lower TCO with Reduced Protected Instance Fee

Azure Backup for SAP HANA Database Delivers More Value at Lower TCO with Reduced Protected Instance Fees starting 1st Sept’2024   At Azur...

1 year ago

Switch to Azure Business Continuity Center for your at scale BCDR management needs

In response to the evolving customer requirements and environments since COVID-19, including the shift towards hybrid work models and the incr...

1 year ago

The Azure Storage product group is heading to the SNIA Developer Conference 2024

The Azure Storage product group is heading to the SNIA Developer Conference (SDC) 2024 in Santa Clara, California, USA from September 16th thr...

1 year ago

Latest advancements in Premium SSD v2 and Ultra Azure Managed Disks

We are excited to share the latest advancements in Premium SSD v2 (Pv2) and Ultra disks, the next generation of Azure disk stor...

1 year ago

Unlocking the Potential of Unstructured Data with Microsoft Copilot and Azure Native Qumulo

It has been a true pleasure to see our friends at Qumulo constantly innovating and delivering a service that adds more value with every releas...

1 year ago

Public Preview: Customer Managed Planned Failover for Azure Storage

We are excited to announce customer managed Planned Failover for Azure Storage is now available in public preview.   Over the past few ye...

2 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy