An Azure backup service that provides built-in management at scale.
Restore web app folder ( no backup)
during a publish operation, a folder was over written that should not have been, is there a way to restore to a point before the last publish? backup was not enabled
Azure Backup
1 answer
Sort by: Most helpful
-
AI answer
2026-05-18T17:00:40.7133333+00:00 There is no built-in way in Azure App Service to roll back web app content if:
- A publish overwrote files, and
- App Service backups or snapshots were not enabled/configured beforehand.
Restore options in App Service (portal backups,
az webapp config snapshot restore, or “undelete” for deleted apps) all require that a backup/snapshot or deleted-app record already exists. Without such a backup, App Service cannot reconstruct the previous state of a specific folder.If backups were enabled (for future reference):
- From the Azure portal, use Backups → Restore to restore the app or a slot to a previous backup.
- Or use Azure CLI
az webapp config snapshot listandaz webapp config snapshot restoreto restore a snapshot to the same or another app.
For the current incident (no backup configured), the only remaining options are external to App Service, such as:
- Re-deploying the previous version from source control (Git, GitHub, Azure Repos, etc.).
- Restoring files from any external backup system that may have captured the content.
To avoid this in the future, configure App Service backups or use deployment slots and swap after validation.
References:
- Back up and restore your app in Azure App Service
- Restore a deleted app in App Service
- Web Deploy Automatic Backups
- Web Deploy PowerShell Cmdlets
AI-generated content may be incorrect. Read our transparency notes for more information.