Azure / Azure/azureml-examples
Packaging Model using Registry Environment fails during ACR pull
- Dominant language
- Jupyter Notebook
- Stars
- 2k
- Forks
- 1.7k
- Avg merge
- 18h 18m
- Merged PRs (30d)
- 2
Description
### Operating System
Windows
### Version Information
azure-ai-ml -1.12
### Steps to reproduce
1. Build environment in shared registry
2. Create a model package to use shared environment as base environment
- Package.yml :
- $schema: http://azureml/sdk-2-0/ModelVersionPackage.json
base_environment_source:
type: environment_asset
resource_id: azureml://registries/shared-registry/environments/shared_base_env/versions/1
target_environment_name: model-pkg
inferencing_server:
type: azureml_online
code_configuration:
code: model_root
scoring_script: score.py
3. build model package in workspace.
### Expected behavior
New model package env created in local aml workspace successfully
### Actual behavior
NOTE: Azure Container Registry path has domain printed twice.
Error in Step 1 of environment build:
Step 1/6 : FROM **4*********.azurecr.io/ 4*********.azurecr.io**/azureml/54*********4/shared_base_env:1@sha256:7824*********
Get https://4*********.azurecr.io/v2/4*********.azurecr.io/azureml/54*********4/shared_base_env/manifests/sha256:7824*********
: unauthorized: authentication required
### Addition information
_No response_
Contributor guide
Research direction
Reproduce the failure using the shown Package.yml, a shared registry environment, and the Azure ML model-package build. Start with Step 1 of the environment build and compare the expected ACR image reference with the duplicated registry path in the error; done means the package environment is created successfully in the local AML workspace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, docker
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100