Skip to content

Fix Azure Functions remote build by setting deployment flags in workflows#83

Merged
fpittelo merged 2 commits intodevfrom
copilot/fix-issue-81-problem
Nov 24, 2025
Merged

Fix Azure Functions remote build by setting deployment flags in workflows#83
fpittelo merged 2 commits intodevfrom
copilot/fix-issue-81-problem

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

PR #82 set SCM_DO_BUILD_DURING_DEPLOYMENT and ENABLE_ORYX_BUILD in Terraform, but the /api/chat endpoint still returns 404. The Azure/functions-action@v1 defaults these flags to false, overriding the app settings and preventing dependency installation.

Changes

Updated both function deployment workflows to explicitly enable remote build:

- name: Deploy to Azure Function App
  uses: Azure/functions-action@v1
  with:
    app-name: ${{ env.ENVIRONMENT }}-alpinebot-func
    package: ./backend
    scm-do-build-during-deployment: true  # Added
    enable-oryx-build: true               # Added

Files modified:

  • .github/workflows/deploy-function.yaml
  • .github/workflows/deploy.yaml

This ensures Azure installs Python dependencies from requirements.txt during deployment, creating the required .python_packages folder.

Fixes #81

Original prompt

Please work on issue #81 and read the lasd comment. The fix merge #82 did not work.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue 81 after failed merge of issue 82 Fix Azure Functions remote build by setting deployment flags in workflows Nov 24, 2025
Copilot AI requested a review from fpittelo November 24, 2025 10:30
@fpittelo fpittelo marked this pull request as ready for review November 24, 2025 10:33
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.

@copilot thanks

@fpittelo fpittelo merged commit bc0dc9a into dev Nov 24, 2025
@fpittelo fpittelo deleted the copilot/fix-issue-81-problem branch November 24, 2025 10:34
Copilot AI requested a review from fpittelo November 24, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants