I have created in Azure 2 Azure Functions resources with the following names:
- FrontApiFunctions
- PostProcessingFunctions
My Visual Studio solutions is like this:
AllFunctions.sln
|- FrontApiFunctions
|- FrontApiFunctions.csproj
|- FrontApiFunctions.cs
|- PostProcessingFunctions
|- PostProcessingFunctions.csproj
|- PostProcessingFunctions.cs
In VSTS what are the steps to deploy:
- FrontApiFunctions.csproj to the FrontApiFunctions resources
- PostProcessingFunctions.csproj to the PostProcessingFunctions resources
Machado
4,1403 gold badges27 silver badges37 bronze badges
1 Answer 1
I did something similar once, except I built and referenced a class library from a Function App. You should be able to adapt this approach:
- Build the solution
- Add a "Copy Files" task to copy the output of the class library into the references of the function app
- In the Copy Files task, specify the build output of the class library
- For the
Target Folder
, specify the folder that your Function App is pulling its references from, for example:#r "References\MyAssembly.dll"
Function App Build Configuration
As for the release:
- Simply use the "Azure App Service Deploy" task
- The trick here is that while the task looks for a zip file by default, you can override it simply publish the contents of a folder instead (the function app)
answered Jul 7, 2017 at 21:49
lang-cs