Static Web App - incomplete upload due to storage quota or error - how to debug?

SVerroken 0 Reputation points
2024-12-18T09:18:30.82+00:00

I have a Hugo static web app, that upload only part of the website. I think it might be due to the storage quota applied (aka 250MB for a static web app). I will try to reduce, but how can one check what the current storage size is on the static app?

I've been digging in the Azure, but can't seem to find the current used storage. Pointers very welcome.

Do apologize for the non-sense tags, but the form did not allowed for custom tags (such as Github, Hugo...)

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,143 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,036 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 1,620 Reputation points Microsoft Vendor
    2024-12-24T18:04:06.6533333+00:00

    Hi SVerroken

    Thankyou for your response.
    Confirm the size of the public folder is below the 250MB quota.

    Linux:Run du -sh public/.

    Windows: Run dir /s.
    Navigate to your Static Web App resource in Azure Portal.

    Go to Deployment History under the Overview section.

    Check for warnings, errors, or skipped files during the deployment.

    Open your GitHub repository>Go to Actions > Select the latest deployment workflow.

    Expand the Deploy Azure Static Web App step and review logs for skipped files or errors.
    Go to your project in the Azure DevOps Portal.

    Select Pipelines > Your pipeline run.

    Expand the logs for the Deploy Static Web App task to identify any deployment issues.

    Use Azure CLI to list deployed files
    az staticwebapp environment show --name <YourAppName> --resource-group <YourResourceGroup> --environment-name production
    Azure Static Web Apps do not provide direct storage metrics. Ensure your site size, including assets, stays under 250MB.

    Reduce file size or remove unused assets if deployment fails due to size.

    Cross-check deployment logs for detailed error messages and resolve issues accordingly.
    https://learn.microsoft.com/en-us/azure/static-web-apps/overview
    https://learn.microsoft.com/en-us/azure/static-web-apps/build-configuration?tabs=identity&pivots=github-actions
    https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest
    If the answer is helpful, please click ACCEPT ANSWER and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    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.