Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an AzureML environment with a base image from a private repository and publishing to registry fails #3420

Open
OriolVF opened this issue Oct 14, 2024 · 0 comments
Labels

Comments

@OriolVF
Copy link

OriolVF commented Oct 14, 2024

Operating System

Windows

Version Information

azure-cli: 2.65.0
azure-cli-core: 2.65.0
azure-cli-telemetry: 1.1.0
extensions:
acrquery: 1.0.1
ml: 2.31.0

Steps to reproduce

  1. Generate a yaml environment definition:
    $schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
    name: uritomltable-environment
    image: myacr.azurecr.io/azuremlbuild/myimage:1
    description: Environment created from a Docker image
    version: 1
  2. Verify authentication to registry: User can do acr login and docker pull myacr.azurecr.io/azuremlbuild/myimage:1 (authentication works)
  3. Create the environment on a registry running az ml environment create --file myenv.yml --registry-name MyRegistry

Expected behavior

Environment is created and pushed to registry. Authentication should work if the user/service principal has rights to the acr and registries.
Extra taken steps:

Actual behavior

Error is returned : Authentication failed for container registry myacr. Code: UserError

Addition information

When trying to publish the environment to a workspace it works fine.
When trying to publish an environment to the registry with an image from an open registry (for example pytorch) it works fine.

@OriolVF OriolVF added the bug label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant