Hello Ajay Bahuguna,
I hope you are doing well.
From your statement all seems working.
Anyway, please visit the links below:
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal
Let us know if you need anything else. Or if it's ok, please accept the answer.