Hi @Intelicosmos ,
I’m glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that “The question author cannot accept their own answer. They can only accept answers by others”, I’ll repost your solution in case you’d like to Accept the answer.
Issue:
While deploying a React application (built with Vite) to an Azure Web App on the Free Tier (F1, Linux), the deployment failed with the error:
“There is not enough space on the disk”
This error occurred during a ZIP deployment using az webapp deployment source config-zip
, even though the same deployment worked fine on a different Web App instance.
Investigations showed:
- The React
dist
folder included a large 56 MB video file. - F1 tier Web Apps have limited disk space, often less than 1 GB.
- The deployment process temporarily doubles the required space due to ZIP extraction and cleanup.
- F1 Linux plans do not expose the Kudu/SCM console in the Azure portal.
- The failing Web App had a hostname with a random suffix (e.g.,
*.azurewebsites.net
), which is expected behavior for F1 Linux plans.
Solution:
I can confirm that after moving videos to Blob Storage and using video Urls, I was able to successfully deploy to Web App.
To resolve the issue Removed the large video file from the React dist
folder and Uploaded the video to Azure Blob Storage instead.
Then Updated the React app to reference the video via Blob Storage URL, rather than packaging it with the app.
After this change, the application deployed successfully to the Free Tier Azure Web App without disk space issues.
Please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.