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?
It seems that there was a similar issue with a version regression in the past. Check out the issue around this: https://github.com/Azure/azure-cli/issues/11246
You can install
Azure CLI 2.0.77
or2.0.75
usingpip
and see if this issue is vanished:May be, this is an issue with a latest update.