D:\Local storage at limits

Dan Latvala 1 Reputation point

My .NET web app started throwing random and intermittent 500 errors on Friday. In looking at the logs, it appears that the site will generate random IOException errors that say, "there is not enough space on the disk." This happens on multiple pages in the application and at random times.

When looking at Kudu, the D:\Local drive fluctuates between having 0 Mb and 100 Mb free. I have four small apps running on the app service plan, and I am using about 5% of my quote for the service plan.

I've tried restarting all the applications to clear out the temp files, but still the D:\local drive does not shrink.

Thanks in advance for any insights.


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,342 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,641 Reputation points Microsoft Employee

    @Dan Latvala Thanks for reaching out to Microsoft Q&A. Apologize for the inconvenience caused on this.

    Is your .NET webapp running on Windows App Service plan or Linux App Service plan?

    • If you web app is running on the Windows App Service plan I would suggest you install the Azure Web Apps Disk Usage extensions from site extensions through kudu and using that extension you understand which app is consuming more space and you can delete the unwanted space accordingly. Refer to this blog post to understand more what is taking my disk space for my azure web apps.
    • If you webapp are running on the Linux App Service plan I would suggest restarting all the apps inside the app service plan to clear that temp file or try to scaleup the app service plan to next tier to increase the temp size.

    You refer to this documentation for more information about the persistent files and temporary files in app service file system.

    Feel free to reach back to me if you have any further questions on this.

    1 person found this answer helpful.