Hello G Cocci,
Thank you for posting your question in the Microsoft Q&A forum.
To retrieve the Azure Container Registry (ACR) repository URL for an environment registered in Azure Machine Learning (AML) using a local Dockerfile and context, you can use the Azure ML Python SDK v2 or CLI v2. However, the ACR URL is not directly exposed in the environment details returned by these tools. Instead, you can extract this information by querying the underlying Azure resources.
While the ACR repository URL is not directly exposed in the environment details returned by the Azure ML Python SDK v2 or CLI v2, you can retrieve it by parsing the environment build logs or querying the Azure Container Registry. By automating this process, you can efficiently share the ACR repository URL externally, enabling data scientists to register environments from their local machines while maintaining visibility into the underlying resources.
You may refer to the documentation below for more info:
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-azure-cli
https://learn.microsoft.com/en-us/python/api/overview/azure/ai-ml-readme?view=azure-python
If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.