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
- Git clone this repo: https://github.com/Azure-Samples/serverless-chat-langchainjs/
cd packages/api && npm rm typescript => We remove the typescript tool from the Functions API, causing the build to fail
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