Hi @Arpan Malik Welcome to Microsoft Q&A, Thank you for posting your query.
Note: If it is production data that got deleted, Recommended to reach out to Azure Support immediately. They may be able to recover the data if not too much time has elapsed.
If you have container or blob soft-delete enabled, you can recover the data if the data retention period has not expired.
https://learn.microsoft.com/en-us/azure/storage/blobs/soft-delete-blob-manage
If you accidentally deleted a blob in Azure Blob Storage and soft delete was not enabled, recovering that blob can be very difficult, if not impossible. Here are few steps to check.
- If you have a backup for your blob, you can restore it from the backup.
- if you have versioning enable for your storage account, you may able to recover a previous version of your blob.
- https://learn.microsoft.com/en-us/azure/storage/blobs/versioning-overview#blob-versioning-and-soft-delete From this you can know how the versioning works and how to restore your previous version of your blob.
- If you have geo-replication enable for your storage account, you may be able to recover blob from the secondary region.
If self recovery is not possible, the azure storage product team can attempt to recover the data.
- The blob was deleted within the past 14 days.
- The blob was created with the Azure Resource Manager deployment model.
- A new blob with the same name has not been created since the original blob was deleted.
- The user who is recovering the blob must be assigned an Azure RBAC role that provides the Microsoft.Storage/storageAccounts/write permission.
If the recovery target has been re-created with the same name since it was deleted, you'll need to provide a new folder that can be used to restore the recovered data. You'll be responsible for merging back the data to the original location.
To request recovery of a deleted blob, you can open a support ticket with Microsoft Azure Support.
Please let us know if you have any further queries. I’m happy to assist you further.
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.