Skip to content

Commit 3c2f6d5

Browse files
committed
fix environments
1 parent c4b8cc8 commit 3c2f6d5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/machine-learning/how-to-use-serverless-compute.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,12 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
117117
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
118118
command: echo "hello world"
119119
environment:
120-
image: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest
120+
image: library/python:latest
121121
identity:
122122
type: user_identity
123123
```
124-
Run the file using the following command:
124+
125+
Submit the job with the following command:
125126

126127
```bash
127128
az ml job create --file hello.yaml --resource-group my-resource-group --workspace-name my-workspace
@@ -150,7 +151,7 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
150151
)
151152
job = command(
152153
command="echo 'hello world'",
153-
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
154+
environment="azureml://registries/azureml/environments/sklearn-1.5/labels/latest",
154155
identity= ManagedIdentityConfiguration(),
155156
)
156157
# submit the command job
@@ -164,7 +165,7 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
164165
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
165166
command: echo "hello world"
166167
environment:
167-
image: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest
168+
image: library/python:latest
168169
identity:
169170
type: managed
170171
````
@@ -196,7 +197,7 @@ ml_client = MLClient(
196197
)
197198
job = command(
198199
command="echo 'hello world'",
199-
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest",
200+
environment="azureml://registries/azureml/environments/sklearn-1.5/labels/latest",
200201
)
201202
# submit the command job
202203
ml_client.create_or_update(job)
@@ -242,7 +243,7 @@ You can override these defaults. If you want to specify the VM type or number o
242243
)
243244
job = command(
244245
command="echo 'hello world'",
245-
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
246+
environment="azureml://registries/azureml/environments/sklearn-1.5/labels/latest",
246247
resources = JobResourceConfiguration(instance_type="Standard_NC24", instance_count=4)
247248
)
248249
# submit the command job
@@ -281,7 +282,7 @@ You can override these defaults. If you want to specify the VM type or number o
281282
)
282283
job = command(
283284
command="echo 'hello world'",
284-
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
285+
environment="azureml://registries/azureml/environments/sklearn-1.5/labels/latest",
285286
queue_settings={
286287
"job_tier": "spot"
287288
}
@@ -322,7 +323,7 @@ ml_client = MLClient(
322323
)
323324
job = command(
324325
command="echo 'hello world'",
325-
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
326+
environment="azureml://registries/azureml/environments/sklearn-1.5/labels/latest",
326327
identity=UserIdentityConfiguration(),
327328
queue_settings={
328329
"job_tier": "Standard"

0 commit comments

Comments
 (0)