Azure function ftp app file size too big

Sebastian Sidor 0 Reputation points
2024-09-26T21:09:58.8266667+00:00

Hi! We are using azure functions with ftp to download XML files to an azure files share and then import the data to Dynamics 365 Business Central. It works fine with until we have to download a file larger than 150MB. Then it won't work, it won't be downloaded. Is there any way to solve this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,978 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 54,316 Reputation points
    2024-09-26T21:26:14.7433333+00:00

    That is really dependent upon the plan you're using. See here.

    If you're passing the file as a payload to the function app then it won't work because the max reqwest size for an app is 100 MB irrelevant of the plan. If you're downloading the file within the function app then you have between 1 and 4 GB of memory to play with so you should be able to load the file but that relies on having contiguous memory if you're loading it into an array. If you're using a stream then it can be streamed straight to the file share. However note the storage size limits for each plan. This is for all functions running in the same plan. If you have only a single instance running then that would be fine but if you have several function apps running (because of scaling perhaps) then you may reach the limit pretty quickly.

    Without more information about your function app configuration and how it is loading those files then it is hard to tell where things might go wrong.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.