UGENT - Restore deleted function app from Visual Studio Code

Kulkarni, Amay (HBO-NS) 1 Reputation point
2022-05-31T15:01:23.7+00:00

UGENT - Restore deleted function app from Visual Studio Code.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,929 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2022-06-07T09:24:58.637+00:00

    **For Community: **

    As per the hosting models (Consumption (serverless), Dedicated, and Premium (hybrid of dedicated and serverless)) that you have create the function. Depending on the type of function used dictates if and how the function app code can be restored.

    Restoring Deleted Code from Consumption and Premium Functions
    Consumption and Premium by default require users to have an app setting WEBSITE_CONTENTAZUREFILECONNECTIONSTRING that designates where the functions code will be hosted inside of an Azure Files storage account. If your function app is deleted but the storage account remains you can find the Function apps code in the storage account under a path as described here depending on how the setting is used. If the storage account is deleted, please we need to reach out to Azure Storage team to see if they can restore the storage account. The undelete features for Function Apps and Web Apps in the dedicated plan cannot be used for Consumption and Premium Functions.

    Restoring from Dedicated Functions
    Dedicated functions utilize the same storage architecture that Azure Web Apps use. To restore a deleted Function App from the dedicated plan please utilize the Undelete for App Service feature. We recommend for source code that is not hosted in source control to make sure to backup code regularly to avoid disruptions.

    When the function app is restored make sure all the proper app settings (storage and other queue resource connection strings) are present otherwise the function runtime will not startup or your function may not execute.

    In case someone hasn't created the function app in dedicated function app plan then feel free to create a support ticket with us so we can work offline with you to recover you deleted function app. If you don't have the support plan, then feel free to create a new Q&A post with azure-function tag and the team will assist you further.

    0 comments No comments

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.