Azure Static Web Apps initial production deployment fails in StaticSitesClient with exit code 1

KYRIAKOS MANIOUDAKIS 0 Reputation points
2026-07-27T14:32:13.92+00:00

I am unable to complete the initial production deployment of an Azure Static Web App.

Current resource state

  • Azure Static Web Apps SKU: Free
  • Deployment source: Other
  • Production environment: Waiting for deployment
  • Preview environments: none
  • No successful deployment has completed
  • No repository or serverless backend is connected

Local environment

  • Windows 10
  • Node.js: 24.18.0
  • npm: 11.16.0
  • npx: 11.16.0
  • Azure Static Web Apps CLI: 2.0.10
  • Deployment environment: production

Application payload

The application is a static front-end project.

Before deployment, I verified:

  • Deployment ZIP SHA256
  • Exactly 25 application files
  • index.html is present
  • staticwebapp.config.json is present
  • robots.txt is present
  • The extracted deployment staging files match the approved ZIP

The deployment token was supplied through the

SWA_CLI_DEPLOYMENT_TOKEN environment variable. It was not passed on the

command line and is not included in this question.

Production deployment result

The CLI correctly locates the configuration file:


Found configuration file:

staticwebapp.config.json

It then starts the deployment:

Deploying project to Azure Static Web Apps...

Preparing deployment. Please wait...

The deployment fails with:

Deployment failed with exit code 1

The deployment binary exited with code 1.
Azure Static Web Apps
Azure Static Web Apps

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


1 answer

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 9,891 Reputation points Volunteer Moderator
    2026-07-27T14:35:02.1166667+00:00

    Welcome to Microsoft Q&A

    Hello @KYRIAKOS MANIOUDAKIS I hope you are doing well.

    Based on the information provided, the error "The deployment binary exited with code 1" is a generic failure from the deployment client and does not identify the underlying cause. Since the deployment never reaches a successful state, the next step is to collect the detailed deployment logs.

    Please check the following:

    • Run the deployment again with verbose logging enabled:
        swa deploy --verbose
      
      or set:
        DEBUG=*
      
      before running the deployment to capture more detailed output. Verify that the deployment token is still valid by generating a new deployment token from the Static Web App > Manage deployment token page and retrying. Confirm that the deployment command is pointing to the correct application folder (the folder containing index.html and staticwebapp.config.json). Review the deployment history in the Azure portal under your Static Web App > Environments to see if a more detailed deployment error is recorded.
    • If possible, share the complete verbose deployment output (excluding the deployment token or any sensitive information), especially the lines immediately preceding "The deployment binary exited with code 1", as they typically identify the failing step.

    References

    Azure Static Web Apps CLI: https://learn.microsoft.com/azure/static-web-apps/static-web-apps-cli

    If my answer helped you, please consider marking it as accepted. This helps others in the community find similar solutions.

    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.