Hello @Ossama Assaghir ,
Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
For your issue, it seems your registry is not in the current subscription. When you use the CLI command az login then you log in with a default subscription. For you, it seems the "'Abonnement Azure 1 (id)" is the default. You should check if your registry is in the current subscription. If not, you should set that subscription as the current subscription through the CLI command:
az account set --subscription subscription_id
Then I suggest you'd better check if the registry exists again with the CLI command:
az acr show -n acr_name
It will show the information of your registry. This time, you can build the image with the CLI command az acr build as you want.
If you have more questions, please let me know. Or if you think it's helpful you can accept it as the answer.