In this blog post, I will show you how to detach an Azure Managed disk from an Azure Virtual Machine.
About Azure Managed Disk
Microsoft Azure Managed Disk is a new virtual machine disk type that is not part of a storage account.
These disks have better performance and scalability across Azure infrastructure.
Detach a Managed Disk
Last week, I had to detach an unused managed disk from one of my Azure virtual machines, and I follow the following steps
Turn off the virtual machine; this step is mandatory.
From the VM left menu, click on disks.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/07/071020_0311_DetachaMana1.png)
From the top menu, click on edit.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/07/071020_0311_DetachaMana2.png)
Wait for the VM to entirely turn off and using the right three-dot menu, click on Detach.
If the option is grey out, the VM is not off yet.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/07/071020_0311_DetachaMana3.png)
Wait a few minutes, and the disk will be detached.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/07/071020_0311_DetachaMana4.png)
After the disk has been detach, it can be deleted from Azure.