Share via

How to restore deleted function within a function app?

Harmony 5 Reputation points
2024-08-07T17:53:02.25+00:00

I accidentally deleted a function contained inside a function app in Azure, and I'm wanting to restore it.

In this case, there is no source control integation (repo) or Azure backups configured. I'm also unable to find it in a linked storage account or Azure snapshots.

Is there any other way to restore the deleted files?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure App Configuration
Azure App Configuration

An Azure service that provides hosted, universal storage for Azure app configurations.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 30,490 Reputation points Volunteer Moderator
    2024-08-07T18:10:29.1833333+00:00

    Given the lack of source control, Azure backups, or retrievable storage account data, recovering the deleted function is highly unlikely.

    If the function app was hosted on a Dedicated app service plan, it can be restored, as long as it was using the default App Service storage. See:

    https://learn.microsoft.com/en-us/azure/app-service/app-service-undelete?source=recommendations

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.