2

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
4

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:

  1. Build the solution
  2. Add a "Copy Files" task to copy the output of the class library into the references of the function app
  3. In the Copy Files task, specify the build output of the class library
  4. 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:

  1. Simply use the "Azure App Service Deploy" task
  2. 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)

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.