Static Web App deployment consistently fails with 'Failure during content distribution' — build succeeds, only the publish step fails

Sameer Tyagi 0 Reputation points
2026-08-12T12:52:38.4866667+00:00
  • A sibling Static Web App resource in the same Azure subscription, deployed via the same mechanism, succeeded during the exact window these failures were occurring — so this looks isolated to one resource's backend state, not a regional or service-wide issue.Every deployment to our Static Web App fails at the content-distribution step, with the generic error Failure during content distribution, regardless of what is being deployed. The build/upload
    itself always succeeds (Oryx build, zip, upload all complete with no errors); the failure occurs
    only after upload, during Azure's own publish/distribution step, roughly 16-17 seconds after polling
    begins — consistently, on every attempt. We have ruled out:
    • Our build/code (the build step never errors; only the post-upload distribution step fails)
      • Payload size (~8 MB total, well under documented limits)
        • The deployment token (regenerated it via "Manage deployment token" in the Portal and updated our
          CI/CD secret to match — the very next deploy failed identically, ruling out a stale/invalid token,
          which would be expected to fail differently, e.g. an authorization error)
          • A broader outage (a second, unrelated Static Web App in the same subscription deployed
            successfully via the same CI/CD pipeline mechanism during the exact window these failures occurred)
    This points to a stuck or corrupted state specific to this one resource's content-distribution
    backend, which isn't visible to us via the CLI (provisioningState returns null, no warnings on the
    resource) or via the pipeline task's own output. To Reproduce
    Steps to reproduce the behavior:
    1. Push a commit to the main branch of the linked repository
      1. The Azure Pipelines CI/CD workflow (using the Azure Static Web Apps deploy task) builds and
        uploads the artifact successfully
        1. The task polls deployment status; after ~16-17 seconds it reports Status: Failed
          1. See error: Deployment Failure Reason: Failure during content distribution. followed by
            Error: The process '/usr/bin/bash' failed with exit code 1
    This has now reproduced identically on 8 consecutive attempts across ~3+ hours, including after a
    deployment-token reset. Expected behavior
    The build artifact publishes successfully, as it has on every prior deployment to this resource. Screenshots
    N/A — text log output only; happy to share the exact log lines from the pipeline task if useful. Device info (if applicable):
    • N/A (server-side/CI failure, not browser-related)
      • Deployment pipeline: Azure Pipelines (Azure DevOps), using the Azure Static Web Apps deploy task
    Additional context
    • Hosting plan: Standard
    • The site itself remains up and serving its last successfully published build throughout — this
      only blocks publishing NEW content, it is not a site-availability incident.
    • Failure timing is consistent to within ~0.2 seconds across all 8 attempts (~16.7-16.9s from
      "Status: InProgress" to "Status: Failed"), which reads as a deterministic backend failure rather
      than a transient/random one.
    • A sibling Static Web App resource in the same Azure subscription, deployed via the same mechanism,
      succeeded during the exact window these failures were occurring — so this looks isolated to one
      resource's backend state, not a regional or service-wide issue.
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. Sameer Tyagi 0 Reputation points
    2026-08-20T13:12:38.67+00:00

    Yes this has been resolved thanks a lot

    Was this answer helpful?

    0 comments No comments

  2. Aditya N 3,810 Reputation points Microsoft External Staff Moderator
    2026-08-12T13:18:07.1+00:00

    Hello @Sameer Tyagi

    Please retry the operation and let us know whether everything is working as expected.

    If you’re still experiencing any issues, just reply with an update and any relevant details. We’ll be happy to continue assisting you and investigate further if needed.

    We look forward to hearing back from you.

    Was this answer helpful?

    0 comments No comments

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.