Skip to content
Latchkey

Azure App Service "Oryx build failed / ZipDeploy failed" in CI

When App Service builds your package server side, Oryx detects the runtime and runs the install/build. If detection fails or a dependency install errors, the ZipDeploy fails and the new package is not promoted.

What this error means

The webapp deploy step fails with "Oryx build failed" or "Deployment Failed, Error: Package deployment using ZIP Deploy failed", with an Oryx log link.

Azure
Deployment Failed, Error: Package deployment using ZIP Deploy failed.
Oryx Version: ... Build Operation ID: ...
Error: Couldn't detect a version for the platform 'nodejs' in the repo.

Common causes

Oryx cannot detect the runtime or version

Missing package.json/requirements.txt at the deploy root, or no runtime version set, leaves Oryx unable to pick a platform to build for.

The server-side dependency install fails

A build that works locally fails on App Service because of a different platform version or a dependency that cannot install in the Oryx environment.

How to fix it

Set the runtime and ensure manifests are at the root

  1. Confirm package.json or requirements.txt is at the deployed package root.
  2. Pin the runtime so Oryx detects a version.
  3. Redeploy and read the Oryx build log if it still fails.
Terminal
az webapp config set --name my-app --resource-group rg \
  --linux-fx-version "NODE|20-lts"

Deploy a prebuilt package and skip Oryx

Build in CI, then disable server-side build so the exact artifact you tested is what runs.

Terminal
az webapp config appsettings set --name my-app --resource-group rg \
  --settings SCM_DO_BUILD_DURING_DEPLOYMENT=false

How to prevent it

  • Keep runtime manifests at the package root so Oryx can detect them.
  • Pin the runtime version on the web app.
  • Prefer building in CI and deploying a prebuilt, tested package.

Frequently asked questions

What causes ""Oryx build failed""?
Missing package.json/requirements.txt at the deploy root, or no runtime version set, leaves Oryx unable to pick a platform to build for.
How do I fix "Oryx build failed"?
Set the runtime and ensure manifests are at the root

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card