Azure Static Web Apps deployment stalls at “Uploading build artifacts”

Ryan Travis 0 Reputation points
2026-11-09T16:00:10.6966667+00:00

I’m deploying a small static site to Azure Static Web Apps. The Azure Static Web Apps CLI (2.1.0) and its bundled StaticSitesClient (1.0.0) both stop at “Uploading build artifacts” and do not complete. I waited several minutes, but neither tool reported success or a clear error. The package contains 12 files (about 18 MB).

The existing test site continues to serve its previous placeholder page, while the expected assessment pages return 404. Azure shows the deployment environment as “Uploading.” This test app also has a separate Azure Functions backend linked to its existing default environment, which needs to remain connected.

Is this a known Azure Static Web Apps content-upload issue? What is the supported way to deploy the static files to the existing API-linked environment without replacing or unlinking the backend?

Azure Static Web Apps
Azure Static Web Apps

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

0 comments No comments

1 answer

Sort by: Newest
  1. Sedat SALMAN 14,385 Reputation points MVP
    2026-11-09T17:04:12.62+00:00

    The docs don't confirm a known upload issue, but they do show how to deploy only the front end to the default environment. The SWA CLI deploys to the preview environment unless you say otherwise, so target production explicitly and leave out the API location. The linked Functions backend is attached to the app, not to your upload, so it stays connected.

    1. Build or collect the static files into one folder, for example ./dist.
    2. Run: swa deploy ./dist --env production --deployment-token <TOKEN>
    3. Do not pass --api-location. Keep api_location empty if you also use a workflow.

    Get the token from Manage deployment token in the portal, or with az staticwebapp secrets list. The docs also require CLI version 2.0.2 or later, which you meet.

    Does the run still stall with --env production, and does the token belong to this app?

    References:

    If this solved it, please click Accept Answer and upvote so others with the same problem can find it.

    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.