Hosting Plan - Website - Deleted

Gabriel Moraes 230 Reputation points
2024-05-13T16:53:37.55+00:00

Hello.

How to restore resource in Azure using REST API or other? I urgently need to restore files that I accidentally deleted today:

Resource: Azure Hosting Plan - Website

Best Regards,

Gabriel Moraes.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,026 questions
{count} votes

Accepted answer
  1. Grmacjon-MSFT 16,756 Reputation points
    2024-05-13T23:31:08.0866667+00:00

    Hi @Gabriel Moraes we are sorry to hear you're facing this issue. To clarify are you trying to restore a deleted web app in your azure app service plan? or a hosting website?

    • Unfortunately, Azure Hosting Plans (websites) don't currently offer a built-in restore functionality through REST API or any other automated method for accidentally deleted resources. However, there might still be a chance to recover your files depending on how long ago you deleted them. If you had Azure Backup configured for your website, there's a possibility you might be able to restore your files from a backup point. Check the Azure portal for your website's backup settings.
    • To restore your deleted Azure Web App use this command: Use the Restore-AzDeletedWebApp command to restore the deleted app into a new app. You may choose the same name or a different name.
    Restore-AzDeletedWebApp
    

    you will want to replace <ResourceGroupName>, <AppName>, and <AppServicePlanName> with your actual resource group name, app name, and app service plan name respectively.

    please note that custom domains, bindings, or certs that you import to your app won’t be restored. You’ll need to re-add them after your app is restored


0 additional answers

Sort by: Most helpful