Hi xdf1038,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
To allow customers from another Azure tenant to access your private Azure Container Registry (ACR) with their own credentials:
Use the Azure CLI to create a service principal and assign it the AcrPull role for your ACR. Example:
az ad sp create-for-rbac --name "customer-sp" --role "AcrPull" \
--scopes /subscriptions/<YourSubscriptionId>/resourceGroups/<YourResourceGroup>/providers/Microsoft.ContainerRegistry/registries/<YourACRName>
Share the appId, password, and tenant securely with the customer
The customer logs in using the provided credentials:
az login --service-principal -u <appId> -p <password> --tenant <tenant>
az acr login --name <YourACRName>
docker pull <YourACRName>.azurecr.io/<repository>:<tag>
For more information, please refer to below documentations:
Create a token with repository-scoped permissions
Authenticate with an Azure container registry
If an answer has been helpful, please consider accept the answer and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community.