<p>I get the below error when I try to push the chart to ACR. Can you suggest the steps to be done here?</p>
<p>&quot;This command is implicitly deprecated because command group 'acr helm' is deprecated and will be removed in a future release. Use 'helm v3' instead.&quot;</p>
<p>I followed this article to create helm chart</p>
<p><a href="https://cloudblogs.microsoft.com/opensource/2018/11/27/tutorial-azure-devops-setup-cicd-pipeline-kubernetes-docker-helm/" rel="nofollow noreferrer">https://cloudblogs.microsoft.com/opensource/2018/11/27/tutorial-azure-devops-setup-cicd-pipeline-kubernetes-docker-helm/</a></p>
<p>These articles also describe the issue, but I don't understand what needs to be done to fix it.
<a href="https://github.com/Azure/azure-cli/issues/14498" rel="nofollow noreferrer">https://github.com/Azure/azure-cli/issues/14498</a>
<a href="https://gitanswer.com/azure-cli-az-acr-helm-commands-not-working-python-663770738" rel="nofollow noreferrer">https://gitanswer.com/azure-cli-az-acr-helm-commands-not-working-python-663770738</a>
<a href="https://github.com/Azure/azure-cli/issues/14467" rel="nofollow noreferrer">https://github.com/Azure/azure-cli/issues/14467</a></p>
<p>Here is the yaml script which throws error</p>
<pre><code>- bash: |
    cd $(projectName)
    chartPackage=$(ls $(projectName)-$(helmChartVersion).tgz)
    az acr helm push \
        -n $(registryName) \
        -u $(registryLogin) \
        -p '$(registryPassword)' \
        $chartPackage



 Chart.yaml
         apiVersion: v1
         description: first helm chart create 
          name: helmApp
          version: v0.3.0
</code></pre>

<p>Azure has deprecated the support managing Helm charts using the Az Cli. So you will need Helm client version <code>3.7.1</code> to push the Helm charts to ACR.</p>
<p>To push the Helm charts to ACR, follow the next steps:</p>
<ol>
<li><p>Enable OCI support</p>
<pre><code>export HELM_EXPERIMENTAL_OCI=1
</code></pre>
</li>
<li><p>Save your chart to a local archive</p>
<pre><code>cd chart-dir
helm package .
</code></pre>
</li>
<li><p>Authenticate with the registry using <code>helm registry login</code> command</p>
<pre><code>helm registry login $ACR_NAME.azurecr.io \
  --username $USER_NAME \
  --password $PASSWORD
</code></pre>
</li>
<li><p>Push chart to the registry as OCI artifact</p>
<pre><code>helm push chart-name-0.1.0.tgz oci://$ACR_NAME.azurecr.io/helm
</code></pre>
</li>
</ol>
<p>You can use the above steps in the Azure DevOps pipeline and it will work as expected. For more info on pushing helm charts to ACR, refer to <a href="https://learn.microsoft.com/en-us/azure/container-registry/container-registry-helm-repos" rel="nofollow noreferrer">this doc</a>.</p>
