Skill 1.2.2
Create and manage environments
Key Concepts
An environment is a Docker image, optionally combined with a conda file of Python packages or replaced by a Docker build context. Curated environments, published by Microsoft in the azureml registry, contain common frameworks and are ready to use. Custom environments are created with az ml environment create; Azure Machine Learning builds their image in the workspace's container registry the first time a job uses them and reuses it afterwards.
Environments are versioned. Pinning package versions in the conda file and referencing an explicit environment version makes training reproducible, and using the same environment for training and inference avoids failures caused by mismatched library versions. Image builds can fail on conflicting packages or, in a network-isolated workspace, when no image build compute is configured.