Azure / Azure/azureml-examples

Azure ML v2 - environment name

Open
#2,431 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
2k
Forks
1.7k
Avg merge
18h 18m
Merged PRs (30d)
2

Description

### Operating System

Linux

### Version Information

- azureml-core==1.50.0
- azureml-sdk==1.50.0
- azureml-defaults==1.50.0
- azureml-widgets==1.50.0
- azureml-tensorboard==1.50.0
- azureml-mlflow==1.50.0

### Steps to reproduce

```
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
type: command

name: Test
version: 1
display_name: Test
description: Test

inputs:
runtime_env:
type: string
default: dev
description: Env to be used (dev/prod)

environment: azureml:${{inputs.runtime_env}}-env@latest
is_deterministic: false

code: ../../..
command: >-
PYTHONPATH=$PYTHONPATH:. ; export PYTHONPATH ;
python ./entrypoint.py
-runtime_env ${{inputs.runtime_env}}
```

### Expected behavior

Use an environment with a name that depends on the value of the parameter `runtime_env` for example `dev-test`

### Actual behavior

The Pipeline is not working, unable to connect to the environment

### Addition information

How do I specify an environment in sdk v2 that uses a [specific]( https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json) schema dependent on a parameter name?

Contributor guide

Open the contributing guide

Research direction

Start with the YAML command-component example in the issue and inspect the linked commandComponent.schema.json schema. Reproduce the pipeline with runtime_env set to dev and determine whether a parameter-dependent environment name is supported; done means the pipeline resolves the requested environment reliably or documents the supported limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python, yaml
Domain
cloud, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.