Hi,
Could you please confirm if the above mentioned steps can resolve the Could not create a role assignment for ACR. Are you an Owner on this subscription? error while attaching the AKS cluster(Managed Identity/ServICE principle) to ACR.
Also, please include the steps to check if there is an existing service principal already created for the AKS cluster.
Thanks