az functionapp deployment source config-zip --build-remote false is been treated as "--build-remote true" #28369
Labels
Auto-Assign
Auto assign by bot
azf_bug
azf_reviewed
azf_triaged
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Functions
az functionapp
needs-author-feedback
More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
When running az functionapp deployment source config-zip --build-remote false to do deployment to Linux function app, it is been treated as setting "--build-remote true" which enabled remote build and also set SCM_DO_BUILD_DURING_DEPLOYMENT to true for the function app based on code logic add_remote_build_app_settings during the deployment.
If we do not specify the parameter --build-remote, it will use the default value false which is working fine, but if we specify --build-remote false, it treats it as --build-remote true. Based on code logic here azure-cli/src/azure-cli/azure/cli/command_modules/appservice/custom.py at release · Azure/azure-cli (github.com), it will check build-remote value, if build-remote is false, it should go to remove_remote_build_app_settings instead of add_remote_build_app_settings, however it goes to add_remote_build_app_settings logic here, not sure if the parameter value passed is changed or any code logic issue here:
Related command
az functionapp deployment source config-zip --build-remote false
Errors
No error, it is just the behavior is not correct as expected.
Issue script & Debug output
cli.azure.cli.command_modules.appservice.custom: Setting SCM_DO_BUILD_DURING_DEPLOYMENT to true
Expected behavior
It should not enable remote build and also do not set SCM_DO_BUILD_DURING_DEPLOYMENT to true.
Environment Summary
azure-cli 2.57.0
core 2.57.0
telemetry 1.1.0
Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2
Additional context
No response
The text was updated successfully, but these errors were encountered: