deploying N copies of the same docker image

Tharun Goud 20 Reputation points
2024-03-22T17:48:20.8266667+00:00

Looking at the Azure Portal 'Container Instances' page - for a given container - the container name has 'container instances' written below it, also on that same page - in 'essentials', there is a 'container count' property (with value 1).

this strongly suggests that azure containers are designed to support the deployment of multiple instances of the same container - but how is this done ?

if we want a simple way of parallelization across containers - the starting point should be a mechanism for the simultaneous deployment of multiple homogeneous container instances - without any other nasty complications, eg by including a 'count' or 'instances' value in the 'azure container create' command.

the portal details referenced above suggest that this should be the case - but there is no obvious way to do it - that I can see.

I have seen the 'az deployment group create' command ... oh dear ... is that really the answer ? ...

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
669 questions
0 comments No comments
{count} votes

Accepted answer
  1. v-vvellanki-MSFT 4,915 Reputation points Microsoft Vendor
    2024-03-25T04:32:52.7733333+00:00

    Hi @Tharun Goud,

    Thanks for contacting Microsoft Q&A platform.

    A simple way of deploying multiple instances of the same ACI container would be Azure Resource Manager Templates. You would deploy an ARM Template using the copy element to set the number of containers of a set instance you would like to deploy. For more see this doc.

    If this helps answer your question please mark it as accepted to help others in the community with similar questions. Thanks!

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marcin Policht 16,730 Reputation points MVP
    2024-03-22T22:33:18.7766667+00:00

    You use container groups - details at https://video2.skills-academy.com/en-us/azure/container-instances/container-instances-container-groups

    This is, however, NOT for multiple instances of the same container, but rather tightly integrated containers that run together in the same Azure Container instance


    hth

    Marcin

    0 comments No comments