title: What is a Docker registry service connection?
body: <p>Following <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/targets/webapp-on-container-linux?view=azure-devops&amp;tabs=dotnet-core%2Cyaml" rel="noreferrer">this documentation</a>, <code>Docker registry service connection</code> is found in the following YAML. What is <code>Docker registry service connection</code> and where can it be found?</p>
  
  <pre><code>trigger:
  - master
  
  variables:
    # Container registry service connection established during pipeline creation
    dockerRegistryServiceConnection: &lt;Docker registry service connection&gt;
    imageRepository: &lt;Name of your image repository&gt;
    containerRegistry: &lt;Name of the Azure container registry&gt;
    dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
    tag: '$(Build.BuildId)'
  
    # Agent VM image name
    vmImageName: 'ubuntu-latest'
  
  - task: AzureWebAppContainer@1 # Add this at the end of your file
    inputs:
      azureSubscription: '&lt;Azure service connection&gt;'
      appName: '&lt;Name of the container web app&gt;'
      containers: $(containerRegistry)/$(imageRepository):$(tag)
  </code></pre>