Skip to content

[Issue] Azure Functions deployment reports success, but function not deployed because Oryx build failed #3698

@sinedied

Description

@sinedied

Output from azd version
azd version 1.8.0 (commit 8246323)

Describe the bug
When deploying a JavaScript Azure Function with AZD, the installation of dependencies and build of the app is done remotely with Oryx.

When deploying the Functions, AZD reports a successful deployment as the zip upload succeeds, but the Function app is not deployed if the Oryx build fails and there's no easy way to detect and debug that when it happens.

To Reproduce

  1. Git clone this repo: https://github.com/Azure-Samples/serverless-chat-langchainjs/
  2. cd packages/api && npm rm typescript => We remove the typescript tool from the Functions API, causing the build to fail
  3. azd deploy => Deployment success, but no Function app is actually deployed

Expected behavior
AZD should not report a successful deployment if Oryx build fails, or at least provide a way to check if an issue occurred and show the actual error logs from the Oryx build.

Environment
Information on your environment:
* Language name and version: TypeScript
* IDE and version : VS Code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions