Skip to content

[Reference feedback]: 'az functionapp deployment source config-zip' command seems to ignore the content of '.deployment' file. #31761

@ecormaksin

Description

@ecormaksin

Type of issue

Other (describe below)

Reference command name

az functionapp deployment source config-zip

Feedback

I use Dedicated (App Service) plan, Linux, and Python.

Here and here, Microsoft Learn describes both SCM_DO_BUILD_DURING_DEPLOYMENT=true and ENABLE_ORYX_BUILD=true are needed.

I have following settings in a .deployment configuration file that's located in the root of your .zip file.

[config]
SCM_DO_BUILD_DURING_DEPLOYMENT=true
ENABLE_ORYX_BUILD=true

However, when I run az functionapp deployment source config-zip with --build-remote true option, 'Removing ENABLE_ORYX_BUILD app setting' is displayed on my terminal. And ENABLE_ORYX_BUILD is really removed from the Functions App environment variables.

On the other hand, when I run az functionapp deployment source config-zip without --build-remote true option, 'Setting SCM_DO_BUILD_DURING_DEPLOYMENT to false' is displayed on my terminal. And SCM_DO_BUILD_DURING_DEPLOYMENT is really changed to 'false' on the Functions App environment variables.

I have two questions:

  1. Which does it have a high priority, the options on Azure CLI, and the settings in .deployment configuration file?
  2. The ENABLE_ORYX_BUILD environment variable is neeeded on remote build, why the variable is removed while running az functionapp deployment source config-zip with --build-remote true option?

I'm so confued...

Page URL

No response

Content source URL

No response

Author

No response

Document Id

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botFunctionsaz functionappService AttentionThis issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageThis is a new issue that needs to be triaged to the appropriate team.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions