Recover a deleted storage account

A deleted storage account may be recovered in some cases from within the Azure portal. To recover a storage account, the following conditions must be true:

  • The storage account was deleted within the past 14 days.
  • The storage account was created with the Azure Resource Manager deployment model.
  • A new storage account with the same name has not been created since the original account was deleted.

Before you attempt to recover a deleted storage account, make sure that the resource group for that account exists. If the resource group was deleted, you must recreate it. Recovering a resource group is not possible. For more information about , see Manage resource groups.

If the deleted storage account used customer-managed keys with Azure Key Vault and the key vault has also been deleted, then you must restore the key vault before you restore the storage account. For more information, see Azure Key Vault recovery overview.

Important

Recovery of a deleted storage account is not guaranteed. Recovery is a best-effort attempt. Microsoft recommends locking resources to prevent accidental account deletion. For more information about resource locks, see Lock resources to prevent changes.

Another best practice to avoid accidental account deletion is to limit the number of users who have permissions to delete an account via role-based access control (Azure RBAC). For more information, see Best practices for Azure RBAC.

Recover a deleted account from the Azure portal

To recover a deleted storage account from within another storage account, follow these steps:

  1. Navigate to the overview page for an existing storage account in the Azure portal.

  2. In the Support + troubleshooting section, select Recover deleted account.

  3. From the dropdown, select the account to recover, as shown in the following image. If the storage account that you want to recover is not in the dropdown, then it cannot be recovered.

    Screenshot showing how to recover storage account in Azure portal

  4. Select the Recover button to restore the account. The portal displays a notification that the recovery is in progress.

Recover a deleted account via a support ticket

  1. In the Azure portal, navigate to Help + support.

  2. Select New support request.

  3. On the Basics tab, in the Issue type field, select Technical.

  4. In the Subscription field, select the subscription that contained the deleted storage account.

  5. In the Service field, select Storage Account Management.

  6. In the Resource field, select any storage account resource. The deleted storage account will not appear in the list.

  7. Add a brief summary of the issue.

  8. In the Problem type field, select Deletion and Recovery.

  9. In the Problem subtype field, select Recover deleted storage account. The following image shows an example of the Basics tab being filled out:

    Screenshot showing how to recover a storage account through support ticket - Basics tab

  10. Next, navigate to the Solutions tab, and select Customer-Controlled Storage Account Recovery, as shown in the following image:

    Screenshot showing how to recover a storage account through support ticket - Solutions tab

  11. From the dropdown, select the account to recover, as shown in the following image. If the storage account that you want to recover is not in the dropdown, then it cannot be recovered.

    Screenshot showing how to recover a storage account through support ticket

  12. Select the Recover button to restore the account. The portal displays a notification that the recovery is in progress.

Next steps