Master
Master

Reputation: 2163

Recover an App Service from Azure

yesterday I deleted the wrong web app from my azure's account. I tried to follow steps here found on google but this assume's there was a backup made. https://azure.microsoft.com/en-us/documentation/articles/web-sites-restore/ is there a way to recover a deleted web app without having a backup of it?

Upvotes: 1

Views: 3311

Answers (2)

RuslanY
RuslanY

Reputation: 894

The latest powershell commands to restore an app are Get-AzDeletedWebApp and Restore-AzDeletedWebApp. This article (How to restore a deleted Azure Web App) explains how to use them.

Upvotes: 0

israelvaldez
israelvaldez

Reputation: 76

There is a way to recover an app service without having a backup of it, recently Microsoft released a new preview feature to allow you to restore deleted apps, please use the following commands:

To get if the app service is available to restore: Get-AzureRmDeletedWebApp

Get-AzureRmDeletedWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoSite"

To restore it: Restore-AzureRmDeletedWebApp

Restore-AzureRmDeletedWebApp -ResourceGroupName Default-Web-WestUS -Name ContosoApp -TargetAppServicePlanName ContosoPlan

Upvotes: 2

Related Questions