File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
articles/machine-learning Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -465,24 +465,12 @@ You can't create a Python feed connection in studio.
465
465
466
466
---
467
467
468
- ### Azure Container Registry
468
+ ### Container Registry
469
469
470
470
# [ Azure CLI] ( #tab/cli )
471
471
472
472
Create a connection to an Azure Container Registry with one of following YAML files. Be sure to update the appropriate values:
473
473
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
-
486
474
* Connect using a username and password:
487
475
488
476
``` yml
@@ -507,7 +495,7 @@ The following example creates an Azure Container Registry connection. A managed
507
495
508
496
``` python
509
497
from azure.ai.ml.entities import WorkspaceConnection
510
- from azure.ai.ml.entities import UsernamePasswordConfiguration, ManagedIdentityConfiguration
498
+ from azure.ai.ml.entities import UsernamePasswordConfiguration
511
499
512
500
513
501
name = " my_acr_conn"
@@ -518,7 +506,7 @@ wps_connection = WorkspaceConnection(
518
506
name = name,
519
507
type = " container_registry" ,
520
508
target = target,
521
- credentials = ManagedIdentityConfiguration ( client_id = " xxxxx" , resource_id = " xxxxx" ),
509
+ credentials = UsernamePasswordConfiguration( username = " xxxxx" , password = " xxxxx" ),
522
510
)
523
511
ml_client.connections.create_or_update(workspace_connection = wps_connection)
524
512
```
You can’t perform that action at this time.
0 commit comments