Azure / Azure/azure-dev

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

Open
#3,698 4 comments 0 reactions 0 assignees View on GitHub
area/error-handling area/functions bug
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

- [x] Make sure you've installed the latest version using [instructions in the wiki](../wiki/install)

**Output from `azd version`**
azd version 1.8.0 (commit 8246323c2472148288be4b3cbc3c424bd046b985)

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.