Static Web App deployments fail with "Failure during content distribution" - build succeeds, retries fail identically

Rob @ SPP 0 Reputation points
2026-09-01T14:51:36.6966667+00:00

Resource: Static Web App spp-hub, resource group SPP-Hub, Central US, Standard hosting plan.

Since 1 September 2026 (~11:40 UTC) every deployment to this resource fails. The Oryx build and artifact upload complete normally; the deployment then polls for ~16 seconds and fails with:

Status: Failed. Deployment Failed. Deployment Failure Reason: Failure during content distribution. Error: The process '/usr/bin/bash' failed with exit code 1

Five consecutive Azure DevOps pipeline runs failed identically (#20260901.1 to #20260901.5, the last at 12:42 UTC).

Ruled out so far: the last successful deploy was 25 August and nothing in the pipeline or configuration changed since; the site is ~3 MB across ~30 files, far below any limit; only ordinary HTML files changed; a plain rerun also fails; there are no stuck preview environments; Service Health shows no incidents; and the resource's "Diagnose and solve problems" blade itself returns an error. The subscription has no technical support plan, so I cannot raise a ticket.

This looks identical to https://learn.microsoft.com/en-ie/answers/questions/5973371/static-web-app-deployment-consistently-fails-with where the resource's content-distribution backend was stuck and was cleared by Microsoft. Please could you investigate this resource's deployment backend? I can supply exact deployment timestamps or IDs on request.

UPDATE: Failing runs (Azure DevOps pipeline "spp-hub", all on 1 Sep 2026 UTC): #20260901.1 (~11:40), #20260901.2 (~11:53), #20260901.3 (~12:22), #20260901.4 (12:42:24), #20260901.5 (~12:29 - includes a plain rerun). Every one fails at ~16-17s of deployment polling. The last successful run was #20260825.22 on 25 Aug at 16:48, which passed the same ~17s point and succeeded at ~33s. The resource's "Diagnose and solve problems" blade also returns an error. Happy to share the resource name and region with an engineer.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.


2 answers

Sort by: Most helpful
  1. Rob @ SPP 0 Reputation points
    2026-09-02T11:52:28.1733333+00:00

    I have found a solution:

    For info - see GitHub Issue #1803. StevenPearson's solution fixed this issue for me:

    removing skip_app_build: true from the pipeline resolved it - Microsoft appear to have changed deployment behaviour around 30 Aug so that flag now causes the content distribution failure.

    In DevOps: Repos > Files > azure-pipelines.yml > Edit and delete the line: skip_app_build: true # do not run a build - just publish the files

    Was this answer helpful?

    0 comments No comments

  2. Rukshan edirisinghe 165 Reputation points
    2026-09-01T17:47:49.7166667+00:00

    Hi Rob,

    Your diagnosis looks right to me: a deterministic failure at the same ~16-second mark on every attempt, with a successful build/upload, a tiny payload, and zero pipeline changes since the last good deploy, is the signature of the resource's content-distribution backend being in a stuck state rather than anything on your side. This matches the thread you linked, and it's a long-recurring pattern on the SWA GitHub repo as well; multiple reports describe deployments suddenly failing with "Failure during content distribution" where retrying always fails the same way despite nothing changing, and at least one recent case showed the same build-succeeds/distribution-fails pattern with a small file count well below any limit. GitHub + 2

    Only Microsoft can clear the backend state for a specific resource, so the practical question is how to get eyes on it without a support plan. Three routes, in order of effectiveness:

    1. Keep this Q&A thread active and post your deployment IDs. Microsoft support engineers monitor the azure-static-web-apps tag and do pick up resource-specific backend issues here in a similar content-distribution failure thread. The Microsoft responder asked the poster to continue via private messages so they could collect details and troubleshoot the specific resource. Edit your question to include the deployment IDs and exact UTC timestamps now rather than waiting to be asked; it speeds things up considerably. Don't post the full subscription ID publicly; the resource name, region, and deployment IDs are enough for them to locate it once they engage privately. Microsoft Learn

    2. Open an issue at github.com/Azure/static-web-apps. The deployment failure output itself directs you there, and the SWA product team triages that repo directly; it's often faster than Q&A for backend-stuck resources. Include the resource name, region, deployment IDs, and a link back to this thread.

    3. While you wait, a few things that have unstuck this for others (worth trying since they cost minutes):

    • Regenerate the deployment token ("Manage deployment token" in the portal), update your DevOps secret, and redeploy. In the thread you linked, the poster had already tried this without success, but it's the cheapest possible fix, so it's worth one attempt.
    • Deploy once via the SWA CLI (swa deploy) with the token directly, bypassing the DevOps task entirely. If that also fails at the distribution step, it further confirms the backend is stuck (useful evidence for Microsoft); if it succeeds, the problem is narrower than it looks.
    • As a last-resort mitigation if the site being un-updatable becomes urgent: stand up a parallel Static Web App, point the pipeline at it, validate, then move the custom domain across. Not a fix, but it restores your ability to ship while the original resource is investigated.

    One more note: since "Diagnose and solve problems" is erroring on the resource too, mention that explicitly when Microsoft engages a second broken control-plane surface on the same resource strengthens the case that the resource state itself is corrupted rather than anything deployment-side.

    Hope you get the linked case cleared quickly; it suggests that once the right team sees it, the fix on their end is fast.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.