Skip to content

Remote Build

Eric Jizba edited this page Oct 11, 2019 · 2 revisions

Starting after August 1st, 2019, Function Apps created in Azure support building Python projects remotely. This allows you to deploy just source code without having to install extra tooling on your local machine just to build. New projects will default to remote build, but you can configure any project for either option by modifying your .vscode/settings.json file accordingly:

Remote Build

  1. Set azureFunctions.scmDoBuildDuringDeployment to true
  2. Set azureFunctions.deploySubpath to .
  3. Remove azureFunctions.preDeployTask if it exists

NOTE: The Function App in Azure must have been created after August 1st, 2019 to support this

Local Build

  1. Remove azureFunctions.scmDoBuildDuringDeployment if it exists
  2. Set azureFunctions.deploySubpath to <Name of folder containing project>.zip
  3. Set azureFunctions.preDeployTask to func: pack