Unable to delete a disk

marceus 0 Reputation points
2023-12-21T05:42:49.96+00:00

Hi,

I'm unable to delete one of the virtual disks. The properties blade comes up with an error:

User's image

However, the Overview blade is showing the disk as being attached to a non-existent VM:

User's image

I get this error when trying to delete the disk:

User's image

Has anyone seen this sort of issue? Any ideas on how to delete this resource?

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

2 answers

Sort by: Most helpful
  1. TP 76,681 Reputation points
    2023-12-21T06:18:08.6933333+00:00

    Hi,

    Please confirm that the disk still exists using PowerShell or CLI. For example, you could open PowerShell Cloud Shell from the portal and enter command similar to below:

    Get-AzDisk -ResourceGroupName myResourceGroup
    

    Please add a comment below with the results.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


  2. Anand Prakash Yadav 6,005 Reputation points Microsoft Vendor
    2024-01-01T04:52:43.6833333+00:00

    Hello marceus,

    Thanks for your query.

    Please follow this document to find and delete unattached Azure managed and unmanaged disks:
    Find and delete unattached Azure managed and unmanaged disks

    When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This feature 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 and reduce unnecessary costs.

    This is a similar discussion thread in Q&A forum, please refer to the suggestion and let me know the status.

    This issue typically occurs when you are requesting an operation that is not permitted in the resource's current state.

    You may try deleting the Resource Group from the https://resources.azure.com/, and see if helps. Refer Azure Resource Explorer for more details.

    If the issue still persists, we would like to work closer on this issue, could you please reach to us via AZCommunity[AT]microsoft.com with a link to this Issue as well as your subscription ID and the resource group name, please mention "ATTN anand" in the subject field.

    Hope this helps!

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


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

    0 comments No comments