unable to delete storgae account

Aaron 0 Reputation points
2024-04-18T22:18:43.21+00:00

I have finished with a test storage account, but i'm unable to delete it

The storage account is stuck in the process of a LRS-> ZRS migration (this was started 5 days ago) and seems to be stuck.

The actual storage account has 1 container and 12 test files (data is not important) so can be deleted.

When i attempt to delete it i recieve

'An operation is currently performing on this storage account that requires exclusive access."

I assume this is the failed/stuck migration is there any way to stop the migration from portal /CLI)

Im on a basic plan so cant log a ticket to MS to get them to delete it or stop the process so i can delete it.

Any Ideas

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,702 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. hossein jalilian 2,915 Reputation points
    2024-04-19T00:00:19.51+00:00

    Hello Aaron,

    Thanks for posting your question in the Microsoft Q&A forum.

    You can try canceling the ongoing migration, go to your storage account in the Azure Portal. under the "Settings" section, click on "Redundancy". If the migration is still in progress, you should see an option to "Cancel" the migration. Click "Cancel" and wait for the migration to be canceled.

    If canceling the migration doesn't work, you can try force deleting the storage account using the Azure CLI or PowerShell.

    az storage account delete --name <account_name> --resource-group <resource_group_name> --force
    
    

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

  2. KarishmaTiwari-MSFT 18,522 Reputation points Microsoft Employee
    2024-04-19T00:08:19.19+00:00

    @Aaron This error typically occurs when a write operation for the storage account is in progress.
    In your case, since the migration is still in progress and seems to be stuck, you are getting this error.

    Check if the suggestion shared in this post helps.

    If you are still seeing this issue, this would require an investigation by a support engineer with backend access, to delete the resource. Let me know then and I can help with the support request creation.

    0 comments No comments