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)

FAQs

Identify unattached Azure disks - Azure portal - Azure Virtual Machines? ›

Sign in to the Azure portal. 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.

How do I find unattached disks in Azure portal? ›

Sign in to the Azure portal. 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.

How to identify disk in Azure VM? ›

1 answer
  1. Open Azure CLI command line.
  2. Run the command az vm show -g ftp -n ftp. Sample output: "osDisk": { "caching": "ReadWrite", ...
  3. In the above output : if you see VHD is null - This confirms it is a Managed Disk.
  4. in the VHD section if you see some URI - This confirms it is an Unmanaged disk.
Jan 11, 2021

How to identify managed and unmanaged disks in Azure? ›

Follow the below steps to determine the disk type:
  1. Login to the Azure portal.
  2. Select the VM in question.
  3. Select the disk to check. Look at the disk's URL.
  4. An Unmanaged Disk's URL will look like: /storage_account_name.blob.core.windows.net/VM_name/VM_name.vhd.
  5. A Managed Disk's URL will look like:
Dec 19, 2021

How do I delete all unattached disks in Azure? ›

First, run the script by setting the deleteUnattachedDisks variable to 0. This action lets you find and view all the unattached managed disks. After you review all the unattached disks, run the script again and set the deleteUnattachedDisks variable to 1. This action lets you delete all the unattached managed disks.

How do I detach a disk from Azure virtual machine? ›

Detach a data disk using the portal

Select the virtual machine that has the data disk you want to detach. Under Settings, select Disks. In the Disks pane, to the far right of the data disk that you would like to detach, select the detach button to detach.

How do I find unused resources in Azure portal? ›

You can try to use the tool Azure Orphaned Resources to monitor the unused resources under your Azure subscription. Follow the steps mentioned here to configure the Azure Workbooks with this tool on Azure Portal. Can we see name of the resource or we can sse only number of resources that are unused? @MiniSu, Yes.

How do I check my disk on a virtual machine? ›

Solution
  1. Take a snapshot of the OS disk of the affected VM as a backup. ...
  2. Attach the OS disk to a recovery VM.
  3. On the recovery VM, run Check Disk on the attached OS disk. ...
  4. After the Check Disk completes, detach the disk from the recovery VM, and then re-attach the disk to the affected VM as an OS disk.
Mar 27, 2024

How do I identify a disk? ›

Steps to check disk drive name and information in Windows 10
  1. Press Windows Key + R.
  2. Type msinfo32. Select OK or press Enter.
  3. Go under Components, Storage, Drives, or Disks. The information under Disks has more details.

How many disks can be attached to Azure VM? ›

For Azure managed disks:
ResourceLimit
Standard managed disks50,000
Standard SSD managed disks50,000
Premium SSD managed disks50,000
Premium SSD v2 managed disks1,000
6 more rows
May 23, 2023

What is the difference between managed and unmanaged Azure VM? ›

Difference Between Azure Managed Disks and Unmanaged Disks

In Unmanaged Disk storage, you must create a storage account in resources to hold the disks (VHD files) for your Virtual Machines. With Managed Disk Storage, you are no longer limited by the storage account limits. You can have one storage account per region.

How do I access Azure managed disk? ›

Follow these steps:
  1. Sign in to the Azure portal.
  2. Search for and select Virtual machines.
  3. Select a virtual machine from the list.
  4. On the Virtual machine pane, select Disks.
  5. On the Disks pane, select Create and attach a new disk.
  6. In the drop-downs for the new disk, make the selections you want, and name the disk.

What is a managed disk in Azure VM? ›

Azure Managed Disks are high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.

How do I recover a deleted managed disk in Azure? ›

In the Azure portal, go to Backup center. Select Backup instances under the Manage section. From the list of backup instances, select the disk backup instance for which you want to perform the restore operation. Alternately, you can perform this operation from the Backup vault you used to configure backup for the disk.

How do I unmount a data disk in Azure? ›

Click Azure VMs. A list of the Azure virtual machines and information about the mounted virtual disks appear. Open the ellipsis menu for an Azure virtual machine and select Unmount.

Where are the operating disks and data disks stored in Azure? ›

The operating system disk is created from an image, and both the operating system disk and the image are actually virtual hard disks (VHDs) stored in an Azure storage account. Virtual machines also can have one or more data disks, that are also stored as VHDs.

How do I access my Azure disk? ›

You can use Azure role-based access control (Azure RBAC) to assign specific permissions for a managed disk to one or more users. Managed disks expose a variety of operations, including read, write (create/update), delete, and retrieving a shared access signature (SAS) URI for the disk.

How do I view the contents of my Azure disk? ›

To see its contents, you can open the storage emulator and choose to view cloud drive contents (which opens an explorer window to the correct temporary directory). See this article for more details. Note: The Windows Azure Drives lab is also in the Windows Azure Training Kit.

How do I check disk encryption status in Azure portal? ›

Verify with the Azure CLI by using the az vm encryption show command. Verify with Azure PowerShell by using the Get-AzVmDiskEncryptionStatus cmdlet. Select the VM, then click on Disks under the Settings heading to verify encryption status in the portal. In the chart under Encryption, you'll see if it's enabled.

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.