SWA fails immediately after deployment with the swallowed An unknown exception has occurred.

Brandon Smith 0 Reputation points
2026-06-24T15:18:14.7733333+00:00
  1. Not East US 2 specific. I provisioned a brand-new clean Standard SWA in West US 2 (purple-dune-0c3b1fc1e.7.azurestaticapps.net) — same failure mode, environment stuck in WaitingForDeployment. So whatever this is, it isn't isolated to c2gp-slice-0-eus2-0-ase.
  2. Older binary doesn't help. Tested both 689a6c1fe8fc32f40348cc41223a7e9d83dd43d2 (current manifest) and 08e29138cd3dcda4ffda6d587aa580028110c1c7 (the previous binary still cached on the CDN). Both fail identically with the opaque exception. The CDN has purged everything older than 08e29138..., so the #881-style "patch deploy-client.js to skip version check" workaround is not available.
  3. Cross-platform, cross-client. Reproduced from:
  • Linux/WSL (Ubuntu 24.04), SWA CLI 2.0.7 and 2.0.9
  • Windows 10, SWA CLI 2.0.9
  • Direct StaticSitesClient upload and run --deploymentaction upload invocation, bypassing the Node CLI entirely

Same failure in every combination. Empty stderr — the inner exception is fully swallowed by the binary's top-level handler.

  1. Token + auth are fine. Generic Azure ops (az staticwebapp commands, blob storage reads/writes, the live site at HTTP 200) all work. Token regeneration via az staticwebapp secrets reset-api-key made no difference.

Sample failed Deployment IDs (today):

  • f72e13b9-7b8e-48c3-a614-1176ded81411 (Linux, older 08e29138 binary, full payload)
  • c7bd5ed0-f19f-43bb-8281-03a0a846c3f8 (Linux, older binary, minimal 1-file payload)
  • bca82c7a-0bfa-4725-86f2-372a6c83acf1 (Linux, current 689a6c1f binary)
  • East US 2 SWA: swa-conquest-demo (subscription ID available privately)
  • West US 2 SWA (now deleted): swa-conquest-demo-wus2

Appears to be the same issue as https://github.com/Azure/static-web-apps/issues/1750 which has been open ~3 weeks without an Microsoft response.

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. Golla Venkata Pavani 7,530 Reputation points Microsoft External Staff Moderator
    2026-06-24T17:07:52.7433333+00:00

    Hi @Brandon Smith

    Thank you for reaching us regarding the issue.

    The error "An unknown exception has occurred" during Azure Static Web Apps deployment is documented as a known issue in the context of deployments.
    User's image Recommended Troubleshooting Steps:

    • Retrieve deployment error messages: Review detailed logs in GitHub Actions (if using workflows) or run deployments with maximum verbosity/debug flags.
    • Confirm folder configuration: Ensure app_location, output_location, and api_location (if applicable) in your workflow or deployment settings match your project structure.
    • Check deployment status: Environments stuck in WaitingForDeployment indicate the process has not progressed past the initial upload phase.
    • Use the Diagnose and solve feature in the Azure portal for guided troubleshooting.

    For CLI-based deployments, enable debug logging and verify authentication, build outputs, and required configuration files (e.g., staticwebapp.config.json).

    Reference:
    https://learn.microsoft.com/en-us/azure/static-web-apps/troubleshooting
    https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/troubleshoot?tabs=Browser

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please "accept" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    0 comments No comments

  2. Vinodh247-1375 44,156 Reputation points Volunteer Moderator
    2026-06-24T16:05:52.36+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    This is almost certainly a platform-side regression in azure Static Web Apps deployment service, not your CLI, region, or payload. Your evidence is strong: cross-region repro, cross-client (CLI + direct binary), minimal payload failure, and identical opaque exception indicates the failure is happening inside the StaticSites backend (deployment orchestrator or content ingestion layer) before logs are surfaced. The “WaitingForDeployment” state confirms the job is accepted but crashes during internal processing, and the swallowed exception aligns with the known issue (#1750) where the deploy client masks server-side faults. At this point, there is no reliable client-side workaround, version rollback, token reset, or payload simplification will not help. The only practical path is to raise a Microsoft support ticket with deployment IDs (you already have good samples) so engineering can trace backend logs; alternatively, wait for a service fix. If this is blocking, consider temporarily switching to GitHub Actions based deployment or using Azure Front Door + Storage static hosting until the SWA deployment pipeline stabilises.

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    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.