Best way to get around timeout of functions and/or upgrade plans

TLIT 25 Reputation points
2025-03-20T18:34:49.9866667+00:00

So I had another ticket and have my function working properly now. I am trying to sync to Blobs together and I am running this every 3 hours using a timer trigger. The only problem is, on the dynamic plan it seems the timeout is 5 minutes. I am just using AZCopy but it only gets around 20% of the way through, but it seems almost all the files get updated and get a new version at this time. That might have to do with the way AZ Copy works, but I am not an expert.

Now for the work around, I know the premium plan has a much longer timeout, however the cost is an issue. If I am just trying to simply run an AZ Copy every 3 hours, is the premium plan the best solution? The Flex consumption plan doesn't seem to be able to have AZ Copy uploaded to it, which causes other issues. So I saw the estimated prices of the premium to be $150 a month, but would that be the same for my case?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,685 questions
{count} votes

Accepted answer
  1. Loknathsatyasaivarma Mahali 1,290 Reputation points Microsoft External Staff
    2025-03-20T21:47:01.9766667+00:00

    Hello TLIT,

    Thanks for reaching out, to address the timeout issue with the dynamic plan in Azure Functions while syncing blobs using AZCopy every 3 hours, switching to the Premium Plan is the recommended solution. The Premium Plan offers a longer execution timeout, making it ideal for long-running tasks like AZCopy. While the estimated cost is around $150 per month, the actual cost can vary depending on execution time, memory usage, and frequency. Using the Azure Pricing Calculator can help you estimate the precise cost based on your specific usage. By moving to the Premium Plan, you can ensure smooth and uninterrupted sync operations without being limited by the 5-minute timeout of the dynamic plan.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.