@@ -117,11 +117,12 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
117
117
$ schema: https:// azuremlschemas.azureedge.net/ latest/ commandJob.schema.json
118
118
command: echo " hello world"
119
119
environment:
120
- image: azureml:AzureML - sklearn - 1.0 - ubuntu20.04 - py38 - cpu @ latest
120
+ image: library / python: latest
121
121
identity:
122
122
type : user_identity
123
123
```
124
- Run the file using the following command:
124
+
125
+ Submit the job with the following command:
125
126
126
127
```bash
127
128
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
150
151
)
151
152
job = command(
152
153
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" ,
154
155
identity = ManagedIdentityConfiguration(),
155
156
)
156
157
# submit the command job
@@ -164,7 +165,7 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
164
165
$ schema: https:// azuremlschemas.azureedge.net/ latest/ commandJob.schema.json
165
166
command: echo " hello world"
166
167
environment:
167
- image: azureml:AzureML - sklearn - 1.0 - ubuntu20.04 - py38 - cpu @ latest
168
+ image: library / python: latest
168
169
identity:
169
170
type : managed
170
171
````
@@ -196,7 +197,7 @@ ml_client = MLClient(
196
197
)
197
198
job = command(
198
199
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" ,
200
201
)
201
202
# submit the command job
202
203
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
242
243
)
243
244
job = command(
244
245
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" ,
246
247
resources = JobResourceConfiguration(instance_type = " Standard_NC24" , instance_count = 4 )
247
248
)
248
249
# submit the command job
@@ -281,7 +282,7 @@ You can override these defaults. If you want to specify the VM type or number o
281
282
)
282
283
job = command(
283
284
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" ,
285
286
queue_settings = {
286
287
" job_tier" : " spot"
287
288
}
@@ -322,7 +323,7 @@ ml_client = MLClient(
322
323
)
323
324
job = command(
324
325
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" ,
326
327
identity = UserIdentityConfiguration(),
327
328
queue_settings = {
328
329
" job_tier" : " Standard"
0 commit comments