Is there a timeout on running azure container instances

Yovel Cohen 25 Reputation points
2024-02-19T20:14:01.09+00:00

Hi, I'm running a python app on a container instance that's triggered by a queue storage message. I wondered if there's a timeout on the function that processes the message?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
717 questions
Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
110 questions
{count} votes

Accepted answer
  1. Anveshreddy Nimmala 3,550 Reputation points Microsoft Vendor
    2024-02-20T11:55:53.2633333+00:00

    Hello Yovel Cohen, Azure Container Instances are suspended after 1,800 seconds, which is 30 minutes. If the container instance is not resumed within this time, it goes into a terminated state and the session ends. However, you can change the timeout duration by setting the --grace-period parameter when you create the container instance.

    az container create --name mycontainer --image myimage --resource-group myresourcegroup --grace-period <time in seconds> Hope this helps you.

    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.