Please verify the disk been attached to any VM's
Error accessing storage Azure disk
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.
2 answers
Sort by: Most helpful
-
-
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.