@@ -440,7 +440,7 @@ The following example creates a Python feed connection. A Personal Access Token
440
440
441
441
``` python
442
442
from azure.ai.ml.entities import WorkspaceConnection
443
- from azure.ai.ml.entities import UsernamePasswordConfiguration, ManagedIdentityConfiguration
443
+ from azure.ai.ml.entities import UsernamePasswordConfiguration, PatTokenConfiguration
444
444
445
445
446
446
name = " my_pfeed_conn"
@@ -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, PatTokenConfiguration
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
```
@@ -556,4 +544,4 @@ ml_client.connections.create_or_update(workspace_connection=wps_connection)
556
544
If you use a data connection (Snowflake DB, Amazon S3, or Azure SQL DB), these articles offer more information:
557
545
558
546
- [ Import data assets] ( how-to-import-data-assets.md )
559
- - [ Schedule data import jobs] ( how-to-schedule-data-import.md )
547
+ - [ Schedule data import jobs] ( how-to-schedule-data-import.md )
0 commit comments