Hello @HP-Nunes ,
Thanks for reaching out to Microsoft Q&A.
There is a detailed discussion with multiple alternative options mentioned in the below article:
https://github.com/Azure/AKS/issues/1517
Summarizing couple of options here:
1) Start a fresh window and start with az login
2) Try to delete the cached file : ~/.azure/aksServicePrincipal.json
3) If you are using Service Principle try to assign acrpull permissions using below command :
az role assignment create --assignee-object-id $SERVICE_PRINCIPAL_OBJECT_ID --scope $ACR_REGISTRY_ID --role acrpull
4) A better alternative is to use a Managed Identity for AKS
https://learn.microsoft.com/en-us/azure/aks/use-managed-identity
Kindly go through , let us know if any of those steps helps out in resolving your issue.
Regards,
Shiva.