Skip to content

Fix Azure Functions deployment: use string values for build parameters#85

Merged
fpittelo merged 2 commits intodevfrom
copilot/fix-azure-function-deployment
Nov 24, 2025
Merged

Fix Azure Functions deployment: use string values for build parameters#85
fpittelo merged 2 commits intodevfrom
copilot/fix-azure-function-deployment

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

The Azure Functions GitHub Action was ignoring scm-do-build-during-deployment and enable-oryx-build settings, showing them as false in logs despite being set to true in the workflow configuration.

Changes

  • Changed parameter values from boolean true to string 'true' in both deploy-function.yaml and deploy.yaml workflows
  • The Azure Functions action requires these parameters as strings; boolean values are misinterpreted as false

Before:

- name: Deploy to Azure Function App
  uses: Azure/functions-action@v1
  with:
    scm-do-build-during-deployment: true
    enable-oryx-build: true

After:

- name: Deploy to Azure Function App
  uses: Azure/functions-action@v1
  with:
    scm-do-build-during-deployment: 'true'
    enable-oryx-build: 'true'

This ensures Oryx build runs during deployment as configured in the Terraform module.

Original prompt

This section details on the original issue you should resolve

<issue_title>Azure App Function deployment issue</issue_title>
<issue_description>with main.tf I deploy an azure linux function app. 2 settings are set to "true" in the module.

scm-do-build-during-deployment: true
enable-oryx-build: true

But the Github actions deployment log show it is deployed with the settings as false :

Run Azure/functions-action@v1
with:
app-name: dev-alpinebot-func
package: ./backend
respect-pom-xml: false
respect-funcignore: false
scm-do-build-during-deployment: false
enable-oryx-build: false
remote-build: false
env:
ENVIRONMENT: dev
pythonLocation: /opt/hostedtoolcache/Python/3.12.12/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.12/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.12/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.12/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.12/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.12/x64/lib
Using RBAC for authentication, GitHub Action will perform resource validation.
Successfully acquired site configs from function app!
Detected function app sku: Dedicated
Successfully acquired app settings from function app (RBAC)!
Detected function app language: Python
Will archive ./backend into /home/runner/work/_temp/temp_web_package_9464760748776608.zip as function app content
Will use https:///api/zipdeploy to deploy since RBAC Azure credential is detected.
Package deployment using ZIP Deploy initiated.
Deploy logs can be viewed at https://dev-alpinebot-func.scm.azurewebsites.net/api/deployments/c459f23b-1623-487f-a45a-332aeae9ab0d/log
Successfully deployed web package to App Service.

Likely cause :

  • Cached workflow: GitHub Actions might be using a cached version of the workflow ?
  • Conflicting app settings: The Function App might have these settings explicitly set to false in Azure, which could override the deployment parameters ?

Suggested Solutions to try :

-Check current Azure App settings

  • Remove the "Install Dependencies" step (Not need with enable-oryx-build: true ?)
  • Why not try to replace those two parameters with the newer remote-build option:</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
@fpittelo fpittelo self-requested a review November 24, 2025 13:05
@fpittelo fpittelo added the bug Something isn't working label Nov 24, 2025
Copilot AI changed the title [WIP] Fix Azure Function deployment settings in GitHub actions Fix Azure Functions deployment: use string values for build parameters Nov 24, 2025
Copy link
Owner

@fpittelo fpittelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@fpittelo fpittelo marked this pull request as ready for review November 24, 2025 13:06
@fpittelo fpittelo merged commit 6c9b19e into dev Nov 24, 2025
@fpittelo fpittelo deleted the copilot/fix-azure-function-deployment branch November 24, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants