Identify unattached Azure disks - Azure portal - Azure Virtual Machines (2024)

  • Article

Applies to: ✔️ Linux VMs ✔️ Windows VMs ✔️ Flexible scale sets ✔️ Uniform scale sets

When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks using the Azure portal, and reduce unnecessary costs. Deletions are permanent, you will not be able to recover data once you delete a disk.

Managed disks: Find and delete unattached disks

If you have unattached managed disks and no longer need the data on them, the following process explains how to find them from the Azure portal:

  1. Sign in to the Azure portal.

  2. Search for and select Disks.

    On the Disks blade, you are presented with a list of all your disks.

  3. Select the disk you'd like to delete, this brings you to the individual disk's blade.

  4. On the individual disk's blade, confirm the disk state is unattached, then select Delete.

    Identify unattached Azure disks - Azure portal - Azure Virtual Machines (1)

Unmanaged disks: Find and delete unattached disks

Unmanaged disks are VHD files that are stored as page blobs in Azure storage accounts.

If you have unmanaged disks that aren't attached to a VM, no longer need the data on them, and would like to delete them, the following process explains how to do so from the Azure portal:

  1. Sign in to the Azure portal.

  2. Search for and select Disks (Classic).

    You are presented with a list of all your unmanaged disks. Any disk that has "-" in the Attached to column is an unattached disk.

    Identify unattached Azure disks - Azure portal - Azure Virtual Machines (2)

  3. Select the unattached disk you'd like to delete, this brings up the individual disk's blade.

  4. On that individual disk's blade, you can confirm it is unattached, since Attached to will still be -.

    Identify unattached Azure disks - Azure portal - Azure Virtual Machines (3)

  5. Select Delete.

    Identify unattached Azure disks - Azure portal - Azure Virtual Machines (4)

Next steps

If you'd like an automated way of finding and deleting unattached storage accounts, see our CLI or PowerShell articles.

For more information, see Delete a storage account and Identify Orphaned Disks Using PowerShell

Identify unattached Azure disks - Azure portal - Azure Virtual Machines (2024)
Top Articles
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 6072

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.