Flex Consumption Function App deployment fails because Azure adds unsupported build settings.

Kayle Leibold 0 Reputation points
2026-08-18T17:01:34.33+00:00

Details: Function App: bts-security-monitor

Resource group: bts-security-monitor-rg

Plan: Linux Flex Consumption, Python 3.11

Every deployment fails with:

InvalidAppSettingsException: The app settings SCM_DO_BUILD_DURING_DEPLOYMENT, ENABLE_ORYX_BUILD are not supported with this SKU.

We removed both settings and restarted the Function App, but Azure’s deployment pipeline continues to add/reject them. The failure occurs using Azure CLI with remote build enabled and disabled, and Functions Core Tools. Please advise the supported deployment method or correct the platform issue.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


2 answers

Sort by: Most helpful
  1. kagiyama yutaka 5,085 Reputation points
    2026-08-20T03:34:14.7766667+00:00

    I think Flex Consumption for Linux Python 3.11 only supports OneDeploy, and those two build‑flags are not supported for this SKU. So the step is a clean OneDeploy ZIP deployment or a func azure functionapp publish with no build flags, and when the deployment is still rejected, send the deploy‑id and correlation‑id to Azure Support.

    Was this answer helpful?

    0 comments No comments

  2. Taz 9,446 Reputation points MVP Volunteer Moderator
    2026-08-18T17:52:25.67+00:00

    Hi Kayle,

    For Flex Consumption, SCM_DO_BUILD_DURING_DEPLOYMENT and ENABLE_ORYX_BUILD should not be used at all. Flex uses One Deploy, and Oryx is automatically used when remote build is requested. (learn.microsoft.com)

    For GitHub Actions, use:

    uses: Azure/functions-action@v1

    with:

      app-name: bts-security-monitor

      package: .

      remote-build: true

    Do not include scm-do-build-during-deployment or enable-oryx-build. Microsoft also recommends OIDC authentication rather than a publish profile for Flex deployments. (learn.microsoft.com)

    For Python, Core Tools normally requests remote build automatically:

    func azure functionapp publish bts-security-monitor

    Python 3.11 is supported for this scenario. (learn.microsoft.com)

    If the two settings are definitely absent from the Function App and your deployment definition, but Azure still injects them, update Azure CLI/Core Tools and retry. If it still happens, I would open an Azure Support case with the deployment ID and correlation ID. At that point the deployment path is behaving differently from the documented Flex Consumption model.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.