Azure Static web app deployment timeout (I think)

Dan bayley 31 Reputation points
2024-02-23T23:00:09.4266667+00:00

I am uploading via the CLI.
The CLI completes, but shortly after the azure portal says the deployment failed
(no useful message - thanks!)

Other sites are working fine, and so I figured it was an issue unpacking the file.
When I deleted half the files it deploys fine so my suspicious is that the azure server deployment process is timing out with larger zip files (I have a large static website with about 8000 pages)

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2024-04-09T19:02:00.9366667+00:00

    @Dan bayley It sounds like you're encountering a timeout issue during your Azure Static Web App deployment when uploading a large zip file with 8000 pages. While the Azure portal provides minimal information about the error, your observation about smaller deployments succeeding points towards a timeout scenario.

    Here are some steps you can take to troubleshoot and potentially resolve the issue: 1. Verify Timeouts:

    • Check the timeout settings for your Azure Static Web App deployment. You can adjust these settings in the portal or your deployment configuration files. Increasing the timeout value might allow the deployment to complete for larger files.
    • Consult the Azure Static Web App documentation for specific information on deployment timeouts: https://learn.microsoft.com/en-us/azure/static-web-apps/

    2. Explore Alternative Deployment Methods:

    • Consider using alternative deployment methods that might be better suited for larger files. Azure supports deploying static websites from GitHub repositories, Azure Storage blobs, and even continuous integration/continuous delivery (CI/CD) pipelines. These methods might offer improved handling of large files.

    3. Analyze Deployment Logs:

    • While the Azure portal might not display detailed information, review your deployment logs for any clues about the cause of the failure. These logs could be generated by your CLI tool or stored within the Azure platform itself. Searching for keywords like "timeout" or exceeding resource limits might provide insights.

    4. Optimize Your Zip File:

    • If you must use a zip file, consider optimizing it to reduce its size. This could involve:
      • Removing unnecessary files or directories.
        • Using compression algorithms with better compression ratios for static assets.
          • Splitting the zip file into smaller chunks if possible.

    If you have further questions, let us know.

    -Grace

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.