Hello mungi sai meghavardhan, it's important to understand that recovery of a deleted storage account is not a guaranteed operation and is a best-effort basis.
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
- The user who is recovering the storage account must be assigned an Azure RBAC role that provides the Microsoft.Storage/storageAccounts/write permission
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. Similarly, 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.
To recover a deleted storage account from the Azure portal, follow the below steps:
- Navigate to the list of your storage accounts in the Azure portal
- Select the "Restore" button to open the "Restore deleted account" pane
- Select the subscription for the account that you want to recover from the Subscription drop-down.
- 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.
- Select the "Restore" button to recover the account. The portal should start to display a notification that the recovery is in progress.
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.