Skip to content

Azure App Function deployment issue #84

@fpittelo

Description

@fpittelo

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:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions