<p>I have a Kubernetes Cluster running on Azure (AKS / ACS).
I created the cluster using the Portal. There a aadClient was created automatically with a client secret that now expired.</p>

<p>Can somebody please tell me how to set the new client secret which I already created?</p>

<p>Right now AKS is not able to update Loadbalancer values or mount persistant storage.</p>

<p>Thank you!</p>

<p>AKS client credentials can be updated via command:</p>

<pre><code>az aks update-credentials \
    --resource-group myResourceGroup \
    --name myAKSCluster \
    --reset-service-principal \
    --service-principal $SP_ID \
    --client-secret $SP_SECRET
</code></pre>

<p>Official documentation: <a href="https://learn.microsoft.com/en-us/azure/aks/update-credentials#update-aks-cluster-with-new-credentials" rel="noreferrer">https://learn.microsoft.com/en-us/azure/aks/update-credentials#update-aks-cluster-with-new-credentials</a></p>
