Skip to content

Commit 3dd967b

Browse files
Merge pull request #272474 from santiagxf/santiagxf-patch-1
Update how-to-access-data-batch-endpoints-jobs.md
2 parents 6fefef1 + 21bcf22 commit 3dd967b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/machine-learning/how-to-access-data-batch-endpoints-jobs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ To successfully invoke a batch endpoint and create jobs, ensure you have the fol
4242
4343
```python
4444
from azure.ai.ml import MLClient
45-
from azure.identity import DefaultAzureCredentials
45+
from azure.identity import DefaultAzureCredential
4646
47-
ml_client = MLClient.from_config(DefaultAzureCredentials())
47+
ml_client = MLClient.from_config(DefaultAzureCredential())
4848
```
4949
5050
If running outside of Azure Machine Learning compute, you need to specify the workspace where the endpoint is deployed:
5151
5252
```python
5353
from azure.ai.ml import MLClient
54-
from azure.identity import DefaultAzureCredentials
54+
from azure.identity import DefaultAzureCredential
5555
5656
subscription_id = "<subscription>"
5757
resource_group = "<resource-group>"
5858
workspace = "<workspace>"
5959
60-
ml_client = MLClient(DefaultAzureCredentials(), subscription_id, resource_group, workspace)
60+
ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace)
6161
```
6262
6363
# [REST](#tab/rest)

0 commit comments

Comments
 (0)