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

Brijesh Muliya 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.
Azure Container Instances
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eddie Neto 1,256 Reputation points
    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

Your answer

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