2

Microsoft's Run your functions from a package file in Azure recommends running functions with WEBSITE_RUN_FROM_PACKAGE = 1. In 'Using WEBSITE_RUN_FROM_PACKAGE = 1' section one can read:

  • Zip deployment is the recommended way to upload a deployment package to your site.

In Continuous delivery with Azure Pipelines we can read in 'Deploy your app' section for Classic deployments (as opposed to YAML deployments) that:

You'll need to create a separate release pipeline to deploy to Azure Functions. When you create a new release pipeline, search for the Azure Functions release template.

In the Azure Functions task one must choose the Deployment method and the options are:

  • Auto-detect
  • Zip Deploy
  • Run From Package

enter image description here

I am confused by

  • an option called Run From Package next to Zip Deploy option and
  • the documentation saying

    Zip deployment is the recommended way to upload a deployment package to your site

How to correctly deploy a function using Pipelines' Azure Functions task?

3
  • Reference Commented Feb 28, 2022 at 6:23
  • @RithwikBojja-MT Interestingly for me Pipelines do not add WEBSITE_RUN_FROM_PACKAGE = 1 (but when deploying locally with VS Code + A Functions extension the setting is added). I was considering adding a paragraph about this but I didn't want to have multiple issues in one question. Commented Feb 28, 2022 at 6:56
  • @RithwikBojja-MT Your "Reference about the WEBSITE_RUN_FROM_PACKAGE" is the first like I have in the post :/ Commented Feb 28, 2022 at 7:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.