functionapp: az cli disables build on deploy for windows function apps
See original GitHub issueDescribe the bug https://github.com/Azure/azure-cli/pull/10706 effective disables remote builds for windows consumption plan function apps.
Changelog does not mention that new flag is for linux function apps only:
Added --build-remote flag for az functionapp deployment source config-zip to support remote build action during function app deployment.
Also no deprecation warning for have been given for windows consumption plan with SCM_DO_BUILD_DURING_DEPLOYMENT=true
Documentation[1] does not specify any ways to trigger npm install
.
To Reproduce
Running az functionapp deployment source config-zip --build-remote ...
fails with Remote build is only available on Linux function apps
Alternative running az functionapp deployment source config-zip
without --build-remote flag changes function app settings and does not trigger npm install
:
Setting ENABLE_ORYX_BUILD to false
Setting SCM_DO_BUILD_DURING_DEPLOYMENT to false
Expected behavior
After zip deployment function host should trigger npm install
(or other installation method) like az cli did before the pull request.
Alternative fix: another way to trigger npm install
after deployment with az cli should be documented.
Environment summary
azure-cli 2.1.0
command-modules-nspkg 2.0.3
core 2.1.0
nspkg 3.0.4
telemetry 1.0.4
Additional context
Workrounds
- Trigger npm install manually in kudu console
- fetch publishing profile with az cli and trigger npm install through kudu REST API
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
@StrawnSC can you investigate - AFAIK no changes were to function app deployment that should regress this.
What is the latest status of this issue? I have the same issue with the latest version of Azure CLI.