title: Azure Devops Container Job - Authenticate with ACR and pull an image
body: <p>I got a custom image uploaded to my ACR. When I reference the images within my pipeline the authentication to the ACR fails and the pipeline is unable to pull the image.</p>
  <p>How do I authenticate with ACR and pull images via a pipeline:</p>
  <p>Example code:</p>
  <pre><code>parameters:
    - name: App_VariableGroup
      type: string
      default: my-defaults
      values:
        - my-defaults
  
  trigger:
  - main
  
  pool:
    vmImage: ubuntu-latest
  
  container: myacr.azurecr.io/customubuntu:latest
  
  variables:
    - group: ${{ parameters.App_VariableGroup }}
  
  steps:
  - checkout: self
    submodules: true
  - script: | 
      echo Hello, world! \n 
    displayName: 'Run a one-line script'
  
  </code></pre>