This step uses the azure-functions-maven-plugin
.
mvn -DappName=${FUNCTION_NAME} package com.microsoft.azure:azure-functions-maven-plugin:package
While the azure-functions-maven-plugin
contains a goal to deploy a function app, editing the pom.xml
is required to make it work.
To keep the pom.xml
agnostic to the provider:
- Create your function app resource.
- Set the
SCM_DO_BUILD_DURING_DEPLOYMENT
app setting totrue
. - Use a zip deployment to deploy the files contained in
target/azure-functions
.
// TODO: add an example