Skip to content

Commit 42fbbd0

Browse files
authored
Update how-to-use-serverless-compute.md
1 parent e060b31 commit 42fbbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ You can override these defaults. If you want to specify the VM type or number o
223223
from azure.ai.ml import command
224224
from azure.ai.ml import MLClient # Handle to the workspace
225225
from azure.identity import DefaultAzureCredential # Authentication package
226-
from azure.ai.ml.entities import ResourceConfiguration
226+
from azure.ai.ml.entities import JobResourceConfiguration
227227

228228
credential = DefaultAzureCredential()
229229
# 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
236236
job = command(
237237
command="echo 'hello world'",
238238
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)
240240
)
241241
# submit the command job
242242
ml_client.create_or_update(job)

0 commit comments

Comments
 (0)