Reputation: 3978
I have an Azure Functions app working for development purposes, using a Table Storage account with test data. Now I want to have a separate environment (same Functions app with different storage config/conn-string) for production.
So, how can I "copy" my Azure Functions App in order to avoid manual recreation of it in the Azure portal?
Upvotes: 8
Views: 12759
Reputation: 217
By using the Azure Functions CLI, you can just copy a directory, then publish using func azure functionapp publish
Source: https://learn.microsoft.com/en-us/answers/questions/123779/azure-clone-a-function.html
Upvotes: 0
Reputation: 12538
There are a couple of ways you can move the content from one Function App to another. The simplest is to copy the contents of your wwwroot
folder to the other environment, which you can do by using Kudu, FTP, etc.
Another way that is often simpler and less error prone is to setup CI/CD so that different branches will trigger deployments to different environments. You can learn more about the continuous deployment options here.
Upvotes: 6
Reputation: 72171
https://{functionName}.scm.azurewebsites.net/DebugConsole
Upvotes: 2