Error accessing storage Azure disk

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

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.
4,565 questions
No comments
{count} votes

2 answers

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

    Please verify the disk been attached to any VM's

    No comments

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

    @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.

    No comments