title: Login to Azure Container Registry in Azure Pipeline
body: <p>I am unable to follow the documentation for logging into my container registry in Azure using the task "DockerCompose@0".</p>
  
  <p>The documentation suggests to use:</p>
  
  <pre><code>variables:
    azureContainerRegistry: Contoso.azurecr.io
    azureSubscriptionEndpoint: Contoso
  steps:
  - task: DockerCompose@0
    displayName: Container registry login
    inputs:
      containerregistrytype: Azure Container Registry
      azureSubscriptionEndpoint: $(azureSubscriptionEndpoint)
      azureContainerRegistry: $(azureContainerRegistry)
  </code></pre>
  
  <p>Where <em>azureSubscriptionEndpoint</em> is the name of the Service Connection for ARM. </p>
  
  <p>I used the following pipeline:</p>
  
  <pre><code>pool:
    name: Hosted Ubuntu 1604
  
  variables:
    azureContainerRegistry: &lt;ACRName&gt;.azurecr.io
    azureSubscriptionEndpoint: &lt;SubscriptionName&gt; (&lt;SubscriptionID&gt;)
  
  steps:
  
    - task: DockerCompose@0
      displayName: Container registry login
      inputs:
        containerregistrytype: Azure Container Registry
        azureSubscriptionEndpoint: $(azureSubscriptionEndpoint)
        azureContainerRegistry: $(azureContainerRegistry)
  
    - task: DockerCompose@0
      inputs:
        containerregistrytype: 'Azure Container Registry'
        azureSubscriptionEndpoint: $(azureSubscriptionEndpoint)
        azureContainerRegistry: '{"loginServer":"&lt;ACRName&gt;.azurecr.io", "id" : "/subscriptions/&lt;SubscriptionID&gt;/resourceGroups/&lt;ResourceGroup&gt;/providers/Microsoft.ContainerRegistry/registries/&lt;ACRName&gt;"}'
        dockerComposeFile: '&lt;Path&gt;/docker-compose.yml'
        action: 'Build services'
  
    - task: DockerCompose@0
      inputs:
        containerregistrytype: 'Azure Container Registry'
        azureSubscriptionEndpoint: $(azureSubscriptionEndpoint)
        azureContainerRegistry: '{"loginServer":"&lt;ACRName&gt;.azurecr.io", "id" : "/subscriptions/&lt;SubscriptionID&gt;/resourceGroups/&lt;ResourceGroup&gt;/providers/Microsoft.ContainerRegistry/registries/&lt;ACRName&gt;"}'
        dockerComposeFile: '&lt;Path&gt;/docker-compose.yml'
        action: 'Push services'
  
    - task: CopyFiles@2
      displayName: "Copy Files to: $(Build.ArtifactStagingDirectory)"
      inputs:
        SourceFolder: &lt;Path&gt;
        Contents: '**\docker-compose.yml'
        TargetFolder: "$(Build.ArtifactStagingDirectory)"
  
    - task: PublishBuildArtifacts@1
      displayName: "Publish Artifact: drop"
  </code></pre>
  
  <p>However, I am receiving following error in my pipeline:</p>
  
  <pre><code>##[error]Input required: dockerComposeCommand
  </code></pre>
  
  <p>for the the first task (<em>Container registry login</em>).</p>
  
  <p>Where am I going wrong?</p>