Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum limit of Temp directory in Azure Functions on a Consumption plan?

I am working in Azure functions and am on a consumption plan, I have some files that I need in the %temp% directory. What is the maximum size of folder allowed for it?

My files would be about 2GB if it means anything. I need them there because I have to perform some operation on them.

like image 820
Hammad Avatar asked Apr 28 '17 14:04

Hammad


People also ask

How long can an azure function run for on Consumption plan?

Guaranteed for up to 60 minutes.

What is azure function Consumption plan?

Azure Functions consumption plan is billed based on per-second resource consumption and executions. Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month per subscription in pay-as-you-go pricing across all function apps in that subscription.

How much memory can an azure function use?

3 Answers. Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What is the difference between app service plan and Consumption plan?

With the Consumption plan, you do not have to worry about the dimension of your infrastructure, scaling, or pay when not utilizing any resources. For the App Service plan, however, you do need to allocate resources for your functions explicitly and pay for them regardless if you are running functions or not.


1 Answers

There is a 500MB limit on %temp% files in the Consumption plan. See here for more info.

And of course, avoid making assumptions on those files being there from one call to another. But they can be used for temporary storage within the execution of a request. Or potentially as a cache between requests, as long as you have a fall back if they're not there.

like image 191
David Ebbo Avatar answered Nov 15 '22 03:11

David Ebbo