Identify, detach and delete a non used unallocated unmanaged disk

Miriam Gallardo Martos 6 Reputation points
2020-10-10T22:12:08.35+00:00

I have an unallocated disk on a VM with 16 unmanaged disks attached, and I want to identify that exact drive on the list of drives so I can detach it and delete it.

31377-image.png

I have several 512 GB disks, how can I know which one is the one unallocated?

31335-image.png

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
590 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,996 Reputation points Microsoft Employee
    2020-10-12T08:09:14.78+00:00

    @Anonymous

    List unmanaged disks of a VM: az vm unmanaged-disk list provides complete details of the disk.

    Find and delete unattached Azure managed and unmanaged disks using Azure Portal or Powershell

    You can also monitor the free disk space per drive with Azure Monitor do the following:

    • Enable Guest Operating System OS Metrics for the VM.
    • In the Azure Portal select the Virtual Machine.
    • Click Diagnostics Settings (under Monitoring).
    • Click the Performance counters tab.
    • Click the Custom button.
    • In the textbox add the custom metric for the drive you would like. e.g. \LogicalDisk(C:)\% Free Space.
    • Click Add and set the Unit to Percent.

    For more information, please refer to this article: https://video2.skills-academy.com/en-us/azure/azure-monitor/platform/diagnostic-settings

    If you still find any difficulties, I would like to work closer on this issue.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.