<p>I'm using Azure for my Continuous Deployment, My secret name is "<strong>cisecret</strong>" using</p>

<pre><code>kubectl create secret docker-registry cisecret --docker-username=XXXXX --docker-password=XXXXXXX --docker-email=SomeOne@outlook.com --docker-server=XXXXXXXXXX.azurecr.io
</code></pre>

<p>In my Visual Studio Online Release Task
<strong>kubectl run</strong>
Under <strong>Secrets</strong> section
<br/>
Type of secret: dockerRegistry<br/>
Container Registry type: Azure Container Registry<br/>
Secret name: <strong>cisecret</strong></p>

<p>My Release is successfully, but when proxy into kubernetes</p>

<blockquote>
  <p>Failed to pull image xxxxxxx unauthorized: authentication required.</p>
</blockquote>

Herman
<p>I need to grant AKS access to ACR.</p>

<p>Please refer to the link <a href="https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/container-registry/container-registry-auth-aks.md" rel="nofollow noreferrer">here</a></p>
