<p>I have a multistage pipeline with the following</p>
<p>Stage build:</p>
<ol>
<li>build docker image</li>
<li>push image to ACR</li>
<li>package helm chart</li>
<li>push helm chart to ACR</li>
</ol>
<p>Stage deployment:</p>
<ol>
<li>helm upgrade</li>
</ol>
<p><strong>Push helm chart to AKS:</strong></p>
<pre><code> task: HelmDeploy@0
 displayName: 'helm publish'
 inputs:
   azureSubscriptionForACR: '$(azureSubscription)'
   azureResourceGroupForACR: '$(resourceGroup)'
   azureContainerRegistry: '$(containerRegistry)'
   command: 'save'
   arguments: '--app-version $(Version)'
   chartNameForACR: 'charts/$(imageRepository):$(Version)'
   chartPathForACR: $(chartPath)
</code></pre>
<p><strong>Deploy helm chart to AKS:</strong></p>
<pre><code>  task: HelmDeploy@0
  inputs:
    connectionType: 'Kubernetes Service Connection'
    kubernetesServiceConnection: '$(kubernetesServiceConnection)'
    command: 'upgrade'
    chartType: 'Name'
    chartName: '$(containerRegistry)/charts/$(imageRepository):$(Version)'
    chartVersion: '$(Version)'
    azureSubscriptionForACR: '$(azureSubscription)'
    azureResourceGroupForACR: '$(resourceGroup)'
    azureContainerRegistry: '$(containerRegistry)'
    install: true
    releaseName: $(Version)
</code></pre>
<p><strong>Error:</strong></p>
<pre><code>failed to download &quot;&lt;ACR&gt;/charts/&lt;repository&gt;:0.9.26&quot; at version &quot;0.9.26&quot; (hint: running `helm repo update` may help)
</code></pre>
<p><strong>ACR:</strong>
<code>az acr repository show-manifests --name &lt;org&gt; --repository helm/charts/&lt;repository&gt; --detail</code></p>
<pre><code>  {
    &quot;changeableAttributes&quot;: {
      &quot;deleteEnabled&quot;: true,
      &quot;listEnabled&quot;: true,
      &quot;readEnabled&quot;: true,
      &quot;writeEnabled&quot;: true
    },
    &quot;configMediaType&quot;: &quot;application/vnd.cncf.helm.config.v1+json&quot;,
    &quot;createdTime&quot;: &quot;2021-02-02T11:54:54.1623765Z&quot;,
    &quot;digest&quot;: &quot;sha256:fe7924415c4e76df370630bbb0248c9296f27186742e9272eeb87b2322095c83&quot;,
    &quot;imageSize&quot;: 3296,
    &quot;lastUpdateTime&quot;: &quot;2021-02-02T11:54:54.1623765Z&quot;,
    &quot;mediaType&quot;: &quot;application/vnd.oci.image.manifest.v1+json&quot;,
    &quot;tags&quot;: [
      &quot;0.9.26&quot;
    ]
  }
</code></pre>
<p>What am I doing wrong? Do I have to <code>export</code> the helm chart from ACR before I can deploy it?</p>

<p>The answer from @sshepel actually helped somewhat, you need to login to the registry before being able to pull. However, it is sufficient with a simple AzureCLI login.</p>
<pre><code>    - task: AzureCLI@2
      displayName: Login to Azure Container Registry
      inputs:
        azureSubscription: &lt;Azure Resource Manager service connection to your subscription and resource group&gt;
        scriptType: bash
        scriptLocation: inlineScript
        inlineScript: |
          az acr login --name &lt;container registry name&gt;.azurecr.io
</code></pre>
<p>After that it worked perfectly with the undocumented HelmDeploy task.</p>
