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