Do stopped Azure Container Instances container groups count towards quota of 100 container groups per subscription per region?

Yehuda Cohen 21 Reputation points
2022-06-09T13:47:50.343+00:00

I want to spawn ACI container executions on demand via an API. Container groups seem to be the only way to manage this with ACI. Restart policies on the groups will be Never. If I spawn new single use container groups with a request id as the container group name, will I reach a limit after 100 requests?

Azure Container Instances
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Taylor 61,076 Reputation points
    2022-06-09T14:04:27.543+00:00

    Yes you will reach the limit. Whether the containers are running or not is irrelevant. Additionally there are restrictions on how many you can create per hour.

    Unless the API is for a very limited use case I don't think dynamically creating ACIs to handle workloads is going to scale well. It is expensive in terms of resources and price. Without knowing anything else about your system it seems like Azure Functions that can be triggered and do their work would be more scaleable. If you really, really need an isolated environment and containers are the only way to go then I think you'd have to implement some sort of container pool where you reused existing containers. This would reduce the resource cost, would be faster than starting up a new container (I would think) and allows you to better manage the API container usage. But this is completely dependent upon what your API is trying to solve.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.