Hello , Welcome to MS Q&A
Since you're within the 14-day soft delete window in Azure, but the deleted files are not visible in the portal or recoverable items, here are some urgent recovery steps you can take:
1. Use PowerShell to Recover Soft-Deleted Items (ADLS Gen2 or Blob Storage)
If you're working with Azure Data Lake Storage Gen2 or Blob Storage, you can use PowerShell to list and restore soft-deleted items:
PowerShell Script Example:
$storageAccountName = "<your-storage-account>"
$storageAccountKey = "<your-storage-key>"
$ctx = New-AzStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageAccountKey
$filesystemName = "<your-filesystem>"
$dirName = "<your-directory>" # or "" for root
$sinceDate = (Get-Date -AsUTC).AddDays(-14) # Adjust if needed
do {
$deletedItems = Get-AzDataLakeGen2DeletedItem -Context $ctx -FileSystem $filesystemName -Path $dirName -MaxCount 100
$deletedItems | Where-Object { $_.DeletedOn -ge $sinceDate } | Restore-AzDataLakeGen2DeletedItem
} while ($deletedItems.Count -eq 100)
📌 Reference: Azure Storage - Undelete Soft-delete Objects
2. Use Azure Backup (If Enabled)
If the data was protected by Azure Backup, you can recover it using the Backup Center or Recovery Services Vault:
- Go to Backup Center > Backup Instances
- Filter by Protection Status = Soft Deleted
- Select the item and click Restore
📌 Reference: Recover soft deleted data using Azure Backup
Pls check and let us know if any ques
Kindly accept answer if it helps
Thanks
Deepanshu