title: Failed to pull image - unauthorized: authentication required (ImagePullBackOff )
body: <p>My release pipeline runs successfully and creates a container in Azure Kubernetes, however when I view in azure Portal>Kubernetes service> Insights screen, it shows a failure. </p>
  
  <p>It fails to pull the image from my private container repository with error message 'ImagePullBackOff'</p>
  
  <p>I did a kubectl describe on the pod and got below error message:</p>
  
  <blockquote>
    <p>Failed to pull image "myexampleacr.azurecr.io/myacr:13": [rpc error: code = Unknown desc = Error response from daemon: Get <a href="https://myexampleacr.azurecr.io/v2/myacr/manifests/53" rel="nofollow noreferrer">https://myexampleacr.azurecr.io/v2/myacr/manifests/53</a>: unauthorized: authentication required.</p>
  </blockquote>
  
  <p>Below is a brief background on my setup:
  I am using Kubernetes secret to access the containers in private container registry.</p>
  
  <p>I generated the Kubernetes secret using clientId and password(secret) from the Service Principle that my DevOps team created.
   .
  The command used to generate kubernetes secret:</p>
  
  <blockquote>
    <p>kubectl create secret docker-registry acr-auth --docker-server  --docker-username  --docker-password  --docker-email </p>
  </blockquote>
  
  <p>I then updated my deployment.yaml with imagePullSecrets: name:acr-auth </p>
  
  <p>After this, I ran my deployment and release pipeline both ran successfully, but they show failure in the kubernetes service with error message 'ImagePullBackOff' error.</p>
  
  <p>Any help will be much appreciated.</p>