This article shows you how to restore an app in Azure App Service that you have previously backed up (see Back up your app in Azure). You can restore your app with its linked databases on-demand to a previous state, or create a new app based on one of your original app's backup. Azure App Service supports the following databases for backup and restore:
- SQL Database
- Azure Database for MySQL (Preview)
- Azure Database for PostgreSQL (Preview)
- ClearDB MySQL
- MySQL in-app
Restoring from backups is available to apps running in Standard and Premium tier. For information about scaling up your app, see Scale up an app in Azure. Premium tier allows a greater number of daily backups to be performed than Standard tier.
Restore an app from an existing backup
On the Settings blade of your app in the Azure Portal, click Backups to display the Backups blade. Then click Restore.
In the Restore blade, first select the backup source.
The App backup option shows you all the existing backups of the current app, and you can easily select one. The Storage option lets you select any backup ZIP file from any existing Azure Storage account and container in your subscription. If you're trying to restore a backup of another app, use the Storage option.
Then, specify the destination for the app restore in Restore destination.
If you choose Overwrite, all existing data in your current app is erased and overwritten. Before you click OK, make sure that it is exactly what you want to do.
You can select Existing App to restore the app backup to another app in the same resoure group. Before you use this option, you should have already created another app in your resource group with mirroring database configuration to the one defined in the app backup. You can also Create a New app to restore your content to.
Download or delete a backup from a storage account
- From the main Browse blade of the Azure portal, select Storage accounts. A list of your existing storage accounts is displayed.
- Select the storage account that contains the backup that you want to download or delete.The blade for the storage account is displayed.
In the storage account blade, select the container you want
Select backup file you want to download or delete.
- Click Download or Delete depending on what you want to do.
Monitor a restore operation
To see details about the success or failure of the app restore operation, navigate to the Activity Log blade in the Azure portal.
Scroll down to find the desired restore operation and click to select it.
The details blade displays the available information related to the restore operation.
You can backup and restore App Service apps using REST API (see Use REST to back up and restore App Service apps).