
Answer-first summary for fast verification
Answer: Use the Environment class to create a new version of the environment.
According to Microsoft documentation and the community discussion consensus, environments in Azure ML are immutable for most properties including the Docker image. Only description and tags can be updated directly. To change the Docker image version, you must create a new version of the environment using the Environment class with the updated image reference, then use create_or_update() to register it. Option B correctly identifies this approach. Option C is incorrect because create_or_update() alone cannot change the image tag on an existing environment - it requires creating a new environment object with the updated image. Option A is invalid as there's no conda_file when using Docker images directly. Option D only changes metadata, not the actual image.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have an Azure Machine Learning workspace with an existing environment for training jobs that uses a specific Docker image. A new version of this Docker image is now available.
How can you update the environment configuration to use the latest version of the Docker image with the Azure Machine Learning SDK v2?
A
Modify the conda_file to specify the new version of the Docker image.
B
Use the Environment class to create a new version of the environment.
C
Use the create_or_update method to change the tag of the image.
D
Change the description parameter of the environment configuration.