Tuesday, May 23, 2023

Use an Image from Azure Container Registry in a Different Subscription from an Azure Container App

This blog explains the limitation and a workaround to access Azure Container Registry from Container App Environment when the two resources are in two separate subscriptions.

Pre- requisites: Azure Container App and Azure Container Registry deployed to two separate subscriptions.

Go to Azure Container App and click on Containers. Then Click on Edit and Deploy.


Click on "Add" to add new image source. It will open a panel to add container registry connection details.


If you select Azure Container Registry as image source, and expand registry drop down, you would not be able to find the container registry in the list, because Azure Container Registry created in another subscription. However, we can set the container registry using other registries option.



1 - Provide a name for container image source

2 - Select "Docker Hub and other registries" option

3 - Select image type as private or public based on your registry

4 - Click on "Add new", it will open a panel to enter Login server, registry username and registry password. You can find all these values from Azure Container registry under Access Keys section. once values added, click on Add button.



5 - Add the image name and tag 

Once you save and complete the process, you would be able to see container added.





No comments:

Post a Comment