I am using Azure Cli in Jenkins build to deploy my nodejs
azure functions to azure. I need Kudu to build the npm packages to reduce the deployment time on Jenkins side.
I have SCM_DO_BUILD_DURING_DEPLOYMENT = true
in Azure Functions configurations but Azure Cli explicitly set it to false while deploying the artifacts! So the application will be left out without node_modules
folder.
I am using command similar to the following:
az functionapp deployment source config-zip --src artifacts.zip --resource-group MyGroup --subscription MySubscription --name MyFunction --slot pre
Any idea how to fix it?