Hi , I think they are some data disks attached to the VM , please follow below links to first delete the data disk attached to VM then you be able to delete the VM with no issues To delete the data disk and unattached managed and unmanaged disk VM delete process Please accept answer if it helps , Thanks
Can't delete VM "Error: 'Error accessing storage"
Faja, Ramon
0
Reputation points
Hello,
When I try to delete a VM in Azure I get the following error
Can you help me?
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
2 answers
Sort by: Most helpful
-
Deepanshukatara-6769 16,565 Reputation points Moderator
2024-02-15T13:25:22.3233333+00:00 -
vipullag-MSFT 26,487 Reputation points Moderator
2024-02-15T14:09:49.4333333+00:00 Hello Faja, Ramon
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
The error message indicates that there is an issue accessing the storage account associated with the virtual machine. This error can occur if the storage account is not available or if there is an issue with the storage account configuration.
To troubleshoot this issue, you can follow these steps:
- Check if the disk associated with the VM is accessible and available.
- Check if there are any locks on the disk. If there are any locks, you will not be able to delete the disk. You can remove the locks by navigating to the disk in the Azure portal and removing the locks.
- You can try deleting the disk using PowerShell or Azure CLI. You can use the Remove-AzDisk command in PowerShell or the az disk delete command in Azure CLI to delete the disk.
Hope this helps.