Template an existing Azure Function

Do you need to create an Azure Function based on an existing one? While there's no a way to do this using the portal, I found it a temporary workaround. Head to the SCM portal (kudu portal). If you functions project is called X, then that would be https://x.scm.azurewebsites.net.

Next, navigate to the console. In the console xcopy your existing function folder to a new one.

xcopy /E ExistingFunctionFolder d:\home\site\wwwroot\NewFunctionFolder\ 

Et viola! Your new function based on an existing one will show up in the portal.

No Comments