Getting error when I create container app job in my container app environment

Heinrich 0 Reputation points
2024-06-25T15:16:02.96+00:00

When I setup my container app job within my container app environment I get the following error:

Failed to retrieve images for ACR 'acr.azurecr.io'. This may be due to network isolation being enabled on the ACR. Please manually enter the image and tag below.

My ACR has a private endpoint via Private DNS Zone and my container app environment has a subnet with the same NSG and UDR as the ACR.

Even when I deploy my container app job vir ARM template I get this message:

  • The following field(s) are either invalid or missing. Field 'template.containers.ten-gigbyte.image' is invalid with details: 'Invalid value: "acr.azurecr.io/2gbnew2:latest": GET https:?scope=repository%3A2gbnew2%3Apull&service=acr.azurecr.io: unexpected status code 403 Forbidden';. (Code:InvalidParameterValueInContainerTemplate)

My managed identity has all the required permissions for the container app job to pull the image from the ACR.

I tested my network connection from my VM to my ACR(same VNET) and we get a response.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
465 questions
{count} votes

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.