Skip to content

Commit 156bc5d

Browse files
Merge pull request #104671 from rayz90/main
Update reference to non-existing class
2 parents 2ccad51 + 52dfc13 commit 156bc5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/machine-learning/how-to-identity-based-service-authentication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ The following steps outline how to set up data access with user identity for tra
251251
252252
1. Grant data access and create data store as described above for CLI.
253253
254-
1. Submit a training job with identity parameter set to [azure.ai.ml.UserIdentity](/python/api/azure-ai-ml/azure.ai.ml.useridentity). This parameter setting enables the job to access data on behalf of user submitting the job.
254+
1. Submit a training job with identity parameter set to [azure.ai.ml.UserIdentityConfiguration](/python/api/azure-ai-ml/azure.ai.ml.useridentityconfiguration). This parameter setting enables the job to access data on behalf of user submitting the job.
255255
256256
```python
257257
from azure.ai.ml import command
258258
from azure.ai.ml.entities import Data, UriReference
259259
from azure.ai.ml import Input
260260
from azure.ai.ml.constants import AssetTypes
261-
from azure.ai.ml import UserIdentity
261+
from azure.ai.ml import UserIdentityConfiguration
262262

263263
# Specify the data location
264264
my_job_inputs = {
@@ -272,7 +272,7 @@ The following steps outline how to set up data access with user identity for tra
272272
inputs=my_job_inputs,
273273
environment="AzureML-sklearn-0.24-ubuntu18.04-py37-cpu:9",
274274
compute="<my-compute-cluster-name>",
275-
identity= UserIdentity()
275+
identity= UserIdentityConfiguration()
276276
)
277277
# submit the command
278278
returned_job = ml_client.jobs.create_or_update(job)

0 commit comments

Comments
 (0)