Hello @Matthieu Patou
I would recommend you to attach an ACR to an existing AKS cluster comparing to the article
- Integrate an existing ACR with an existing AKS cluster using the
az aks update
command with the--attach-acr
parameter and a valid value for acr-name or acr-resource-id.
Azure CLICopyOpen Cloudshell
# Attach using acr-name
az aks update -n myAKSCluster -g myResourceGroup --attach-acr <acr-name>
# Attach using acr-resource-id
az aks update -n myAKSCluster -g myResourceGroup --attach-acr <acr-resource-id>
Note
The az aks update --attach-acr
command uses the permissions of the user running the command to create the ACR role assignment. This role is assigned to the kubelet managed identity. For more information on AKS managed identities, see Summary of managed identities.