An Azure service that provides streamlined full-stack web app development.
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:
or set:swa deploy --verbose
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 containingDEBUG=*index.htmlandstaticwebapp.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
- Deploy Azure Static Web Apps: https://learn.microsoft.com/azure/static-web-apps/deployment-overview
If my answer helped you, please consider marking it as accepted. This helps others in the community find similar solutions.