How set ideal timeout for container running on container apps using terraform?

BM 46 Reputation points
2023-01-13T12:38:28.4433333+00:00

I am using Terraform to create and manage containers in azure but container gets terminated whenever there is no traffic for 5 minutes I want to increase the time limit to 10 to 30 minutes.

Is there any feature available for container apps or instance in azure?

Can I increase that 5 min limit using terraform or docker file script?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
387 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
635 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eddie Neto 1,236 Reputation points Microsoft Employee
    2023-01-13T16:02:53.6433333+00:00

    Hi @BM

    Thanks for reaching Microsoft Q&A.

    I would say what you are looking for is here. In this case you can set the Container instance "Never" to get restarted.

    Hope this helps. Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    terraform aci

    User's image

    0 comments No comments