Hosting images in Azure container Registry (ACR).

jaffar shaik
3 min readApr 26, 2024

Azure provides ACR to host images .Integarting ACR with AKS will help us to secure the images privately to our Environment and also we can use the Managed identity assigned to AKS Cluster to pull images form the ACR.
Lets craete a Azure container Registry .

Figure : Craeting ACR

here SKU is basic to save costs its provides less performance . if SKU is premium or standard the performnace is high.

Figure : Creating ACR

if its a production Environment we can use Private access becuase it provides a private end point to ACR .

figure : Created ACR

we need to give AKS Agent pool Nodes to access the images from Azure Container registry .

we need to give AKS Agent pool Nodes to access the images from Azure Container registry .

for this we need to go the registry which we have created as shown in above image Goto Access control(IAM) click on ADD.
Since we are using System managed identity Just give the AKS cluster name that is AKSDemo1 it shows the agent pool we need to select as shown in below image .

now the nodes can access the container registry images .

from the below image we can see there are no images in the ACR. lets push an image to ACR.

Figure ACR With Zero images

Lets tag the V1 image .

Figure tagging an image .

Lets push the tagged image to ACR .

we can see the image myapp that which we pushed to the ACR as shown in below image with tag V1.

Lets create the deployment and expose the service .

Figure : Deployment for ACR Image.

Lets access the app the version of our app through external IP of service and we can also note that image is also securely stored in the ACR.

Figure Access of application for image version V1.

--

--