Hi @Rishi Maker
Thanks for the question and using MS Q&A platform.
apologize for any inconvenience caused on this.
Azure App Services store temporary files in directories like D:\local\Temp, which can accumulate and consume space.
Excessive or verbose logging can rapidly fill up disk space.
If using containers, the images and any runtime-generated files also occupy temporary storage.
Persistent application files stored in D:\home\site\wwwroot
can contribute to high disk usage.
Some files or directories may not be visible using standard commands.
The reported disk usage may differ from the apparent file sizes due to system constraints.
Kudu may not always display a complete view of disk utilization.
Access Kudu: Navigate to https://yoursite.scm.azurewebsites.net/.
- Check Environment Variables: Examine %TEMP% and %TMP% to identify temporary file locations.
- Browse the File System: Use the Kudu debug console to inspect large or unexpected files.
Additional Diagnostic Tools
Azure Portal "Diagnose and Solve Problems"
Open your App Service on the Azure portal. Search for "Temp File Usage on Workers" to analyze temporary file consumption.
Azure Web Apps Disk Usage Extension: Install and use this extension via the Kudu console to identify space-consuming applications.
Use Kudu to delete unnecessary files from temporary directories.
· This clears temporary storage but may disrupt active processes.
· Implement scripts or scheduled tasks to periodically remove temporary files.
· Reduce logging verbosity and enable log rotation to prevent excessive file growth.
· Avoid writing large files to temporary directories. Instead, use /home.
· Use a .dockerignore
file to exclude unnecessary files from your container images.
· If disk space issues persist, consider upgrading your App Service Plan for more storage.
https://feng.lu/2017/02/23/Review-and-manage-your-web-site-space-in-Azure/