Azure / Azure/azure-cli

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

Open
#31,761 3 comments 2 reactions 4 assignees Claimed by @kamperiadis View on GitHub
act-observability-squad Auto-Assign customer-reported Functions needs-triage Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Type of issue

Other (describe below)

### Reference command name

az functionapp deployment source config-zip

### Feedback

I use [Dedicated (App Service) plan](https://learn.microsoft.com/en-us/azure/azure-functions/dedicated-plan), Linux, and Python.

[Here](https://docs.azure.cn/en-us/azure-functions/functions-deployment-technologies?tabs=linux#tabpanel_1_linux) and [here](https://docs.azure.cn/en-us/azure-functions/run-functions-from-deployment-package#general-considerations), 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.

```text
[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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.