File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/machine-learning Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ You can override these defaults. If you want to specify the VM type or number o
223
223
from azure.ai.ml import command
224
224
from azure.ai.ml import MLClient # Handle to the workspace
225
225
from azure.identity import DefaultAzureCredential # Authentication package
226
- from azure.ai.ml.entities import ResourceConfiguration
226
+ from azure.ai.ml.entities import JobResourceConfiguration
227
227
228
228
credential = DefaultAzureCredential()
229
229
# Get a handle to the workspace. You can find the info on the workspace tab on ml.azure.com
@@ -236,7 +236,7 @@ You can override these defaults. If you want to specify the VM type or number o
236
236
job = command(
237
237
command = " echo 'hello world'" ,
238
238
environment = " AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest" ,
239
- resources = ResourceConfiguration (instance_type = " Standard_NC24" , instance_count = 4 )
239
+ resources = JobResourceConfiguration (instance_type = " Standard_NC24" , instance_count = 4 )
240
240
)
241
241
# submit the command job
242
242
ml_client.create_or_update(job)
You can’t perform that action at this time.
0 commit comments