What is the best way to clone a Function App?

brtrach-MSFT 15,866 Reputation points Microsoft Employee
2021-05-19T19:42:38.35+00:00

Is there an easy way to recreate my Function App in Azure? I want to duplicate this Function with the same code and configuration settings. I have a few Web Apps hosted on Azure and have used the clone option for them before, does Functions have something similar or a recommended way of doing this?

98022-image.png

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

1 answer

Sort by: Most helpful
  1. Corbin Bethurem 61 Reputation points Microsoft Employee
    2021-05-20T00:52:33.563+00:00

    Cloning for Function Apps is not supported. An example as to why this is for apps in the consumption plan is that these will not have a dedicated file system to store the file content. Additionally, this feature for Web Apps depends on having a storage account for storing app life cycle components.
    As such, the current recommendation to accomplish this would be to use the export template feature in Portal and then use this to create a similar function.
    97990-image.png
    Once the Function is deployed using this template, the final step is to add the storage app settings as mentioned here- https://learn.microsoft.com/en-us/azure/azure-functions/functions-recover-storage-account#required-application-settings

    Although we do not offer this feature at the moment, if you would like to see it in the future then please upvote the ask on our UserVoice site- clone azure function – Customer Feedback for ACE Community Tooling

    4 people found this answer helpful.
    0 comments No comments