Can't delete a storage account

Tim Hundertmark 6 Reputation points
2020-07-03T13:33:46.49+00:00

I'm trying to delete a storage account that does not appear to be working. There is nothing special about this file storage account. I was just trying to set it up. After working on it, I decided to delete it and I'm getting the following error when I try to delete it.

Error details
grovechurch: An operation is currently performing on this storage account that requires exclusive access. (Code: StorageAccountOperationInProgress)

How can I delete the account so I can start over with this project? I can create a new one and continue, but then this storage account will still be there. I need to delete it.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,221 questions
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,913 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Leon Laude 85,721 Reputation points
    2020-07-03T13:48:28.527+00:00

    Hi,

    As mentioned in this document the error "StorageAccountOperationInProgress : An operation is currently performing on this storage account that requires exclusive access" typically occurs when a write operation for the storage account is in progress (maybe multiple actions performed on the same resource (storage account) without completion of the previous action; which results in a conflict).

    I'd suggest retrying the operation after some time and let us know the status.

    You may want to review the Activity Logs to fetch more details on the issue.

    Best regards,
    Leon

    0 comments No comments

  2. Tim Hundertmark 6 Reputation points
    2020-07-03T14:09:20.973+00:00

    Thanks for the reply. It's been over 24 hours that I've been having this issue. Activity logs confirm that the account can't be deleted because an operation is currently performing on this storage account that requires exclusive access.

    Here is a portion of the JSON error
    "resourceType": {
    "value": "Microsoft.Storage/storageAccounts",
    "localizedValue": "Microsoft.Storage/storageAccounts"
    },
    "resourceId": "/subscriptions/5d390d1f-dc3f-4a93-85a8-46d96989d71c/resourceGroups/GroveChurch/providers/Microsoft.Storage/storageAccounts/grovechurch",
    "status": {
    "value": "Failed",
    "localizedValue": "Failed"
    },
    "subStatus": {
    "value": "Conflict",
    "localizedValue": "Conflict (HTTP Status Code: 409)"
    },
    "submissionTimestamp": "2020-07-03T13:18:29.155587Z",
    "subscriptionId": "5d390d1f-dc3f-4a93-85a8-46d96989d71c",
    "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "properties": {
    "statusCode": "Conflict",
    "serviceRequestId": "778ac300-98e2-45cc-aa86-c5db5392f868",
    "statusMessage": "{\"error\":{\"code\":\"StorageAccountOperationInProgress\",\"message\":\"An operation is currently performing on this storage account that requires exclusive access.\"}}",
    "responseBody": "{\"error\":{\"code\":\"StorageAccountOperationInProgress\",\"message\":\"An operation is currently performing on this storage account that requires exclusive access.\"}}",
    "eventCategory": "Administrative"


  3. Tim Hundertmark 6 Reputation points
    2020-07-07T18:24:33.99+00:00

    @deherman-MSFT - I have a ticket open, have gotten a couple responses, but still no real answers. I'm still waiting for someone at MS to delete the storage resource for me.


  4. JASKARAN SINGH 1 Reputation point
    2020-11-03T07:12:15.4+00:00

    I had this problem with the storage account of function app. I was not able to deploy the function app.

    I was able to deploy by stopping the function app and then deployed it.

    0 comments No comments