Error accessing storage Azure disk

Hayamato 1 Reputation point
2021-04-16T10:50:41.257+00:00

I would like to remove the free trial subscription but I need to remove the disk first
and I get an error after a few minutes: Failed to delete disk (name disk) Error: Error accessing storage.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,681 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Eternal_learner 1 Reputation point
    2021-04-16T11:44:26.527+00:00

    Please verify the disk been attached to any VM's

    0 comments No comments

  2. Ramya Harinarthini_MSFT 5,356 Reputation points Microsoft Employee
    2021-04-16T12:41:27.437+00:00

    @Hayamato Welcome to Microsoft Q&A, Thank you for posting your here!

    If you are trying to delete the managed disk Please execute the below command in PowerShell from Cloud shell and if you are receiving any error please share the debug logs to AzCommunity@microsoft.com and mention my alias(RamyaHarinarthini-MST) in the subject line.

    Remove-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01' -Force -debug -verbose

    If the subscription state is in disabled state please reactivate it before deleting the disk

    Additional Information: If you are deleting a classic disk please follow the steps here and for ARM here

    To delete the data disk and unattached managed and unmanaged disk

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.