Skip to content

Commit 8b99911

Browse files
author
Trevor Bye
committed
added cli info to env articles
1 parent ac7fd55 commit 8b99911

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

articles/machine-learning/concept-environments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Environments can be created by:
3939
* Defining new `Environment` objects, either using a curated environment or by defining your own dependencies
4040
* Using existing `Environment` objects from your workspace. This allows for consistency and reproducibility with your dependencies
4141
* Importing from an existing Anaconda environment definition.
42+
* Using the Azure Machine Learning CLI
4243

4344
See the [how-to](how-to-use-environments.md#create-an-environment) for specific code examples. Environments are also easily managed through your workspace and include the following functionality:
4445

articles/machine-learning/how-to-use-environments.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,34 @@ service = Model.deploy(
344344

345345
This [example notebook](https://github.com/Azure/MachineLearningNotebooks/tree/master/how-to-use-azureml/training/using-environments) expands upon concepts and methods demonstrated in this article.
346346

347+
## Create and manage environments with the CLI
348+
349+
The [Azure Machine Learning CLI](reference-azure-machine-learning-cli.md) mirrors the majority of the functionality of the Python SDK, and can be used for environment creation and management. The following commands demonstrate basic functionality.
350+
351+
The following command scaffolds the files for a default environment definition in the specified directory. These files are JSON files that are similar in function to the corresponding class in the SDK, and can be used to create new environments with custom settings.
352+
353+
```azurecli-interactive
354+
az ml environment scaffold -n myenv -d myenvdir
355+
```
356+
357+
Run the following command to register an environment from a specified directory.
358+
359+
```azurecli-interactive
360+
az ml environment register -d myenvdir
361+
```
362+
363+
Running the following command will list all registered environments.
364+
365+
```azurecli-interactive
366+
az ml environment list
367+
```
368+
369+
Download a registered environment with the following command.
370+
371+
```azurecli-interactive
372+
az ml environment download -n myenv -d downloaddir
373+
```
374+
347375
## Next steps
348376

349377
* [Tutorial: Train a model](tutorial-train-models-with-aml.md) uses a managed compute target to train a model.

0 commit comments

Comments
 (0)