I would recommend to try to login first and than you can pull and push image
You can try to login with below command
az acr login -n mytestregistry --expose-token
It will ask for username and password. Enter user name as registry name for example "mytestregistry " and password from your container registry => setting => Access Key
I hope it helps. If it is somehow helpful, please accept my answer. Thank you