Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Web app save temporary files limit

I have need to store files temporary on my Azure web app (app service). I don't have to share these files between web app instances.

I have read (in the kudu wiki) that I can use the d:\local for such storage, but what limitations exists regarding the amount of data that can be stored there?

I have also read that it depends on the selected level (sku) of the web app (Basic, standard, premium) but I have not found any exact size limitations.

Is there any way to determine this in runtime using code?

UPDATE:
When I check the the Environment tab in Kudo on my Basic web app it lists

D:\home usage: 10,240 MB total; 10,072 MB free 
d:\local usage: 230,397 MB total; 198,341 MB free 

But if I do a check using System.IO.DriveInfo.GetDrives() the D drive lists as

d:\ usage: 32,768 MB total;  12,083 MB free

(Kudo shows a lot more than that for the d:\local drive.)
Another peculiar thing is that you can navigate the filesystem in the Kudo console but the files I create on the web app can not be found there.

like image 309
Dan Avatar asked Apr 27 '16 13:04

Dan


1 Answers

This Kudu wiki page has more info about it. Copying from there in the Temporary Files section:

For Free and Shared sites, there is a 500MB limit for all these locations together (i.e. not per-folder). For Standard and Basic sites, the limit is very high (over 100GB).

Also, if you go to the Environment tab in Kudu, it tells you how much space is available (you care about d:\local), e.g.

D:\home usage: 1,024 MB total; 616 MB free d:\local usage: 500 MB total; 499 MB free

like image 118
David Ebbo Avatar answered Oct 21 '22 10:10

David Ebbo