Use custom base images or images other than default ones on deployment Scripts?

Manish Kumar 20 Reputation points
2025-03-02T15:18:06.15+00:00

Following the documentation - A Bicep deployment script runs within an Azure Container Instance (ACI), which pulls an image from the Microsoft Container Registry. The documentation states:

"The ACI downloads container images from the Microsoft Container Registry. If you use a firewall, allowlist the URL mcr.microsoft.com to download the image."

I would like to know if it's possible to use a custom image instead of the default one pulled from the MCR. My goal is to use a custom image that allows me to pull modules from JFrog or a private registry from the deployment script. Would this be supported?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
741 questions
{count} votes

Accepted answer
  1. Marcin Policht 38,155 Reputation points MVP
    2025-03-02T17:33:48.3533333+00:00

    Apologies - clearly I misread your question.

    AFAIK, this is not supported. You can verify this by reviewing the resource definition https://learn.microsoft.com/en-us/azure/templates/microsoft.resources/deploymentscripts?pivots=deployment-language-bicep


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marcin Policht 38,155 Reputation points MVP
    2025-03-02T15:25:44.0533333+00:00

    Yep - follow https://learn.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-bicep?tabs=CLI

    In particular, @description('Container image to deploy. Should be of the form repoName/imagename:tag for images stored in public Docker Hub, or a fully qualified URI for other registries. Images from private registries require additional registry credentials.')


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


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.