azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

How to accept HTTP requests with body size > 100MB

Open eddynaka opened this issue 3 weeks ago • 1 comments

Is your question related to a specific version? If so, please specify:

No specific version.

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

C#

Question

I have a dotnet-isolated azure function running on Windows in .NET 8 in AppServices.

The function has HTTP triggers which works very well for requests under 100MB. For requests greater than that, it just fails with 500 without reaching my code.

Tried some settings such as:

  • Updating the host and including extensions -> http -> maxRequestBodySize
  • Adding environment variables WEBSITE_MAX_REQUEST_LENGTH and WEBSITE_MAX_BODY_SIZE

Given that, do you have guidance on how to increase such limits (from 100MB to something else)?

Thanks!

eddynaka avatar Dec 15 '25 18:12 eddynaka

In parallel, I looked for this https://github.com/Azure/azure-functions-host/issues/10640 but I don't use Kestrel, so I think that does not apply to me but it is interesting that it uses similar property (max request body size).

eddynaka avatar Dec 15 '25 18:12 eddynaka

but I don't use Kestrel

Are you using Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore? If so, you are using Kestrel. Using the AspNetCore package will be the only way to accept these large requests, and that linked issue should contain how to do that.

jviau avatar Dec 17 '25 18:12 jviau