Share via

Restore web app folder ( no backup)

James Anderson 0 Reputation points
2026-05-18T17:00:09.2566667+00:00

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
Azure Backup

An Azure backup service that provides built-in management at scale.


1 answer

Sort by: Most helpful
  1. 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 list and az webapp config snapshot restore to 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.