Skip to content

Commit f284af6

Browse files
authored
Update how-to-connection.md
1 parent 44e65fa commit f284af6

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

articles/machine-learning/how-to-connection.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -465,24 +465,12 @@ You can't create a Python feed connection in studio.
465465

466466
---
467467

468-
### Azure Container Registry
468+
### Container Registry
469469

470470
# [Azure CLI](#tab/cli)
471471

472472
Create a connection to an Azure Container Registry with one of following YAML files. Be sure to update the appropriate values:
473473

474-
* Connect using Microsoft Entra ID authentication:
475-
476-
```yml
477-
name: test_ws_conn_cr_managed
478-
type: container_registry
479-
target: https://test-feed.com
480-
credentials:
481-
type: managed_identity
482-
client_id: client_id
483-
resource_id: resource_id
484-
```
485-
486474
* Connect using a username and password:
487475

488476
```yml
@@ -507,7 +495,7 @@ The following example creates an Azure Container Registry connection. A managed
507495

508496
```python
509497
from azure.ai.ml.entities import WorkspaceConnection
510-
from azure.ai.ml.entities import UsernamePasswordConfiguration, ManagedIdentityConfiguration
498+
from azure.ai.ml.entities import UsernamePasswordConfiguration
511499

512500

513501
name = "my_acr_conn"
@@ -518,7 +506,7 @@ wps_connection = WorkspaceConnection(
518506
name=name,
519507
type="container_registry",
520508
target=target,
521-
credentials=ManagedIdentityConfiguration (client_id="xxxxx", resource_id="xxxxx"),
509+
credentials=UsernamePasswordConfiguration(username="xxxxx", password="xxxxx"),
522510
)
523511
ml_client.connections.create_or_update(workspace_connection=wps_connection)
524512
```

0 commit comments

Comments
 (0)