Disk resource cannot be deleted

Yasushi, Ogura 1 Reputation point
2021-03-22T00:37:19.59+00:00

Hello. When I selected a disk from the All Resources menu on the Azure portal and deleted it, the following message was displayed and the disk could not be deleted. What should I do? There are outstanding items in the active Shared Access Signature. Call EndGetAccess before attaching or deleting the disc. Learn more: aka.ms/revokeaccessapi. (Code: OperationNotAllowed) Kind Regards,

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,162 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,683 questions
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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sumarigo-MSFT 43,486 Reputation points Microsoft Employee
    2021-03-22T10:01:30.733+00:00

    @Yasushi, Ogura Welcome to Microsoft Q&A, Thank you for posting your query!

    Can you share the screenshot of the error message? When exactly are you getting this error message? How are you trying to delete?
    Please try the following steps and let me know the results. 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

    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.


  2. Matt 0 Reputation points
    2023-09-22T22:00:46.6666667+00:00

    Appreciate that this is a pretty late response, but I encountered the same issue and landed here.

    This page takes you through the process of making a call which revokes any existing/pre-existing SAS tokens, which then allows you to delete the disk... https://learn.microsoft.com/en-us/rest/api/compute/disks/revoke-access?

    All the best,

    Matt

    0 comments No comments