mt_xing
mt_xing

Reputation: 653

Restore Deleted Azure Web App Cloud Exception

So someone I handed over an Azure web app to managed to delete the site and now wants it back.

I was running it as a small project on a free tier, so I don't have any active backups or anything. I tried using the new Webapp Undelete feature, but every time I ran Restore-AzureRmDeletedWebApp as detailed here, I get the following error:

Restore-AzureRmDeletedWebApp : An error has occurred.
At line:1 char:1
+ Restore-AzureRmDeletedWebApp -ResourceGroupName xxxx -Name xxxx -Tar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Restore-AzureRmDeletedWebApp], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.RestoreAzureDeletedWebApp

What does this even mean? Is there a way to fix it? Is there a way to access the backup that Azure has (running Get-AzureRmDeletedWebApp definitely still lists the deleted app) manually? Or is the site just gone?

Upvotes: 1

Views: 421

Answers (2)

George Chen
George Chen

Reputation: 14324

The WebApps Undelete is only available for Basic and Up tier for now.And I have tested it , It's successful in basic tier.

If your web runs on free tier and you don't have any backups ,you couldn't recover it by yourself.But you could still check whether all resources including local and deployment resources like GitHub etc have been deleted.

If so, you could contact the Microsoft Support ,maybe they could help you.

And if you have any questions, please let me know.

Upvotes: 2

Nancy Xiong
Nancy Xiong

Reputation: 28204

Per this doc, currently, Azure App Service Undelete is available for all App Service Plans, from Basic and up. Only sites deleted in the past 30 days can be restored. It works for me without errors on a basic plan. You can see the output below.

enter image description here

If I try to restore a web app on a free tier, I have the same error as you, also, I have a 404 Web Site not found error even the restored app service is created or displayed in the Azure portal. It seems that it's not supported to restore a web app on a free tier currently.

If you have back up your web on 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 backups. Restoring from backups is available to apps running in Standard and Premium tier.

Upvotes: 2

Related Questions