Azure / Azure/azureml-examples
Azure ML v2 - environment name
- 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
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