You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-troubleshoot-environments.md
+28-29Lines changed: 28 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Environments fall under three categories: curated, user-managed, and system-mana
29
29
30
30
Curated environments are pre-created environments managed by Azure Machine Learning (AzureML) and are available by default in every workspace.
31
31
32
-
They contain collections of Python packages and settings to help you get started with various machine learning frameworks and are intended for you to use as is.
32
+
They contain collections of Python packages and settings to help you get started with various machine learning frameworks. You're meant to use them as is.
33
33
These pre-created environments also allow for faster deployment time.
34
34
35
35
In user-managed environments, you're responsible for setting up your environment and installing every package that your training script needs on the compute target.
@@ -76,7 +76,7 @@ user-managed, and system-managed.
76
76
77
77
**Curated environments** are pre-created environments that Azure Machine Learning (AzureML) manages and are available by default in every AzureML workspace provisioned.
78
78
79
-
They contain collections of Python packages and settings to help you get started with various machine learning frameworks and are intended for you to use as is.
79
+
They contain collections of Python packages and settings to help you get started with various machine learning frameworks. You're meant to use them as is.
80
80
These pre-created environments also allow for faster deployment time.
81
81
82
82
In **user-managed environments**, you're responsible for setting up your environment and installing every package that your training script needs on the
@@ -88,13 +88,12 @@ compute target and for model deployment. These types of environments have two su
88
88
Once you install more dependencies on top of a Microsoft-provided image, or bring your own base image, vulnerability
89
89
management becomes your responsibility.
90
90
91
-
You use **system-managed environments** when you want conda to manage the Python environment for you. A new isolated conda environment is materialized
92
-
from your conda specification on top of a base Docker image. While Azure Machine Learning patches base images with each release, whether you use the
91
+
You use **system-managed environments** when you want conda to manage the Python environment for you. AzureML creates a new isolated conda environment by materializing your conda specification on top of a base Docker image. While Azure Machine Learning patches base images with each release, whether you use the
93
92
latest image may be a tradeoff between reproducibility and vulnerability management. So, it's your responsibility to choose the environment version used
94
93
for your jobs or model deployments while using system-managed environments.
95
94
96
-
Associated to your Azure Machine Learning workspace is an Azure Container Registry instance that's used as a cache for container images. Any image
97
-
materialized is pushed to the container registry and used if experimentation or deployment is triggered for the corresponding environment. Azure
95
+
Associated to your Azure Machine Learning workspace is an Azure Container Registry instance that's a cache for container images. Any image
96
+
materialized is pushed to the container registry and used if you trigger experimentation or deployment for the corresponding environment. Azure
98
97
Machine Learning doesn't delete images from your container registry, and it's your responsibility to evaluate which images you need to maintain over time. You
99
98
can monitor and maintain environment hygiene with [Microsoft Defender for Container Registry](../defender-for-cloud/defender-for-containers-vulnerability-assessment-azure.md)
100
99
to help scan images for vulnerabilities. To
@@ -157,11 +156,11 @@ To create a new environment, you must use one of the following approaches:
157
156
* Provide the image URI of the image hosted in a registry such as Docker Hub or Azure Container Registry
@@ -171,7 +170,7 @@ To create a new environment, you must use one of the following approaches:
171
170
This issue can happen when your environment definition is missing a `DockerSection.` This section configures settings related to the final Docker image built from your environment specification.
172
171
173
172
**Potential causes:**
174
-
*The `DockerSection` of your environment definition isn't defined (null)
173
+
*You didn't specify the `DockerSection` of your environment definition
175
174
176
175
**Affected areas (symptoms):**
177
176
* Failure in registering your environment
@@ -419,7 +418,7 @@ az ml connection create --file connection.yml --resource-group my-resource-group
419
418
**Potential causes:**
420
419
421
420
* You've specified Docker attributes in your environment definition that are now deprecated
422
-
* The following are deprecated:
421
+
* The following are deprecated properties:
423
422
* `enabled`
424
423
* `arguments`
425
424
* `shared_volumes`
@@ -484,7 +483,7 @@ Ensure that you include a path for your build context
484
483
485
484
### Missing Dockerfile path
486
485
<!--issueDescription-->
487
-
This issue can happen when AzureML fails to find your Dockerfile. As a default, AzureML will look for a Dockerfile named 'Dockerfile' at the root of your build context directory unless a Dockerfile path is specified.
486
+
This issue can happen when AzureML fails to find your Dockerfile. As a default, AzureML looks for a Dockerfile named 'Dockerfile' at the root of your build context directory unless you specify a Dockerfile path.
488
487
489
488
**Potential causes:**
490
489
* Your Dockerfile isn't at the root of your build context directory and/or is named something other than 'Dockerfile,' and you didn't provide its path
@@ -514,7 +513,7 @@ Specify a Dockerfile path
514
513
This issue can happen when you've specified properties in your environment definition that can't be included with a Docker build context.
515
514
516
515
**Potential causes:**
517
-
* You specified a Docker build context, along with at least one of the following in your environment definition:
516
+
* You specified a Docker build context, along with at least one of the following properties in your environment definition:
518
517
* Environment variables
519
518
* Conda dependencies
520
519
* R
@@ -528,7 +527,7 @@ This issue can happen when you've specified properties in your environment defin
528
527
529
528
*Applies to: Python SDK v1*
530
529
531
-
If any of the above-listed properties are specified in your environment definition, remove them
530
+
If you specified any of the above-listed properties in your environment definition, remove them
532
531
* If you're using a Docker build context and want to specify conda dependencies, your conda specification should reside in your build context directory
533
532
534
533
**Resources**
@@ -550,7 +549,7 @@ If any of the above-listed properties are specified in your environment definiti
550
549
551
550
The following are accepted location types:
552
551
* Git
553
-
* Git URLs can be provided to AzureML, but images can't yet be built using them. Use a storage account until builds have Git support
552
+
* You can provide git URLs to AzureML, but you can't use them to build images yet. Use a storage account until builds have Git support
554
553
* Storage account
555
554
* See this [storage account overview](../storage/common/storage-account-overview.md)
556
555
* See how to [create a storage account](../storage/common/storage-account-create.md)
@@ -573,7 +572,7 @@ The following are accepted location types:
573
572
*Applies to: Python SDK v1*
574
573
575
574
For scenarios in which you're storing your Docker build context in a storage account
576
-
*The path of the build context must be specified as
575
+
*You must specify the path of the build context as
* You're responsible for ensuring that all necessary packages are available in the Python environment in which you choose to run the script
821
820
822
-
If you want AzureML to create a Python environment for you based on a conda specification, `conda_dependencies` needs to be populated in your environment definition
821
+
If you want AzureML to create a Python environment for you based on a conda specification, you must populate `conda_dependencies` in your environment definition
823
822
824
823
```python
825
824
from azureml.core.environment import CondaDependencies
You must specify a base Docker image for the environment, and the conda environment will be built on top of that image
889
+
You must specify a base Docker image for the environment, and AzureML will build the conda environment on top of that image
891
890
* Provide the relative path to the conda file
892
891
* See how to [create an environment from a conda specification](https://aka.ms/azureml/environment/create-env-conda-spec-v2)
893
892
@@ -908,7 +907,7 @@ You must specify a base Docker image for the environment, and the conda environm
908
907
909
908
**Troubleshooting steps**
910
909
911
-
For reproducibility of your environment, specify channels from which to pull dependencies. If no conda channel is specified, conda will use defaults that might change.
910
+
For reproducibility of your environment, specify channels from which to pull dependencies. If you don't specify conda channels, conda uses defaults that might change.
912
911
913
912
*Applies to: Python SDK v1*
914
913
@@ -992,7 +991,7 @@ Define an environment using a standard conda YAML configuration file
992
991
993
992
**Troubleshooting steps**
994
993
995
-
If a dependency version isn't specified, the conda package resolver may choose a different version of the package on subsequent builds of the same environment. This breaks reproducibility of the environment and can lead to unexpected errors.
994
+
If you don't specify a dependency version, the conda package resolver may choose a different version of the package on subsequent builds of the same environment. This breaks reproducibility of the environment and can lead to unexpected errors.
996
995
997
996
*Applies to: Python SDK v1*
998
997
@@ -1035,7 +1034,7 @@ channels:
1035
1034
1036
1035
**Troubleshooting steps**
1037
1036
1038
-
For reproducibility, pip should be specified as a dependency in your conda specification, and it should be pinned.
1037
+
For reproducibility, you should specify and pin pip as a dependency in your conda specification.
1039
1038
1040
1039
*Applies to: Python SDK v1*
1041
1040
@@ -1075,7 +1074,7 @@ channels:
1075
1074
1076
1075
**Troubleshooting steps**
1077
1076
1078
-
If a pip version isn't specified, a different version may be used on subsequent builds of the same environment. This can cause reproducibility issues and other unexpected errors if different versions of pip resolve your packages differently.
1077
+
If you don't specify a pip version, a different version may be used on subsequent builds of the same environment. This behavior can cause reproducibility issues and other unexpected errors if different versions of pip resolve your packages differently.
1079
1078
1080
1079
*Applies to: Python SDK v1*
1081
1080
@@ -1145,7 +1144,7 @@ See the [samples repository](https://aka.ms/azureml/environment/train-r-models-c
1145
1144
Ensure that you are specifying your environment name correctly, along with the correct version
1146
1145
* `path-to-resource:version-number`
1147
1146
1148
-
The 'latest' version of your environment is specified in a slightly different way
1147
+
You should specify the 'latest' version of your environment in a different way
0 commit comments