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.