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.
4,890 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
225 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,663 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 15,225 Reputation points
    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://video2.skills-academy.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


Your answer

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