Skip to content

Commit 41fbde2

Browse files
Merge pull request #331 from fbsolo-ms1/document-freshness-maintenance
Update to cover ROPC (Resource Owner Password Credentials) issues . . .
2 parents 726611f + ca03341 commit 41fbde2

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ az ml connection create --file my_snowflakedb_connection.yaml
9696
### Option 2: Override the username and password at the command line
9797

9898
```azurecli
99-
az ml connection create --file my_snowflakedb_connection.yaml --set credentials.username="XXXXX" credentials.password="XXXXX"
99+
az ml connection create --file my_snowflakedb_connection.yaml --set credentials.username="H4iJ5kL6mN7oP8qR9sT0uV1wX2yZ3a" credentials.password="E3fH4iJ5kL6mN7oP8qR9sT0uV1wX2y"
100100
```
101101

102102
# [Python SDK](#tab/python)
@@ -109,8 +109,8 @@ from azure.ai.ml import MLClient, load_workspace_connection
109109
ml_client = MLClient.from_config()
110110

111111
wps_connection = load_workspace_connection(source="./my_snowflakedb_connection.yaml")
112-
wps_connection.credentials.username="XXXXX"
113-
wps_connection.credentials.password="XXXXXXXX"
112+
wps_connection.credentials.username="E3fH4iJ5kL6mN7oP8qR9sT0uV1wX2y"
113+
wps_connection.credentials.password="J5kL6mN7oP8qR9sT0uV1wX2yZ3aB4c"
114114
ml_client.connections.create_or_update(workspace_connection=wps_connection)
115115

116116
```
@@ -128,7 +128,7 @@ name= <my_snowflake_connection> # name of the connection
128128
wps_connection = WorkspaceConnection(name= name,
129129
type="snowflake",
130130
target= target,
131-
credentials= UsernamePasswordConfiguration(username="XXXXX", password="XXXXXX")
131+
credentials= UsernamePasswordConfiguration(username="J5kL6mN7oP8qR9sT0uV1wX2yZ3aB4c", password="C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w")
132132
)
133133

134134
ml_client.connections.create_or_update(workspace_connection=wps_connection)
@@ -185,7 +185,7 @@ az ml connection create --file my_sqldb_connection.yaml
185185
### Option 2: Override the username and password in YAML file
186186

187187
```azurecli
188-
az ml connection create --file my_sqldb_connection.yaml --set credentials.username="XXXXX" credentials.password="XXXXX"
188+
az ml connection create --file my_sqldb_connection.yaml --set credentials.username="A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u" credentials.password="N7oP8qR9sT0uV1wX2yZ3aB4cD5eF6g"
189189
```
190190

191191
# [Python SDK](#tab/python)
@@ -198,8 +198,8 @@ from azure.ai.ml import MLClient, load_workspace_connection
198198
ml_client = MLClient.from_config()
199199

200200
wps_connection = load_workspace_connection(source="./my_sqldb_connection.yaml")
201-
wps_connection.credentials.username="XXXXXX"
202-
wps_connection.credentials.password="XXXXXxXXX"
201+
wps_connection.credentials.username="L6mN7oP8qR9sT0uV1wX2yZ3aB4cD5e"
202+
wps_connection.credentials.password="C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w"
203203
ml_client.connections.create_or_update(workspace_connection=wps_connection)
204204

205205
```
@@ -218,7 +218,7 @@ name= <my_sql_connection> # name of the connection
218218
wps_connection = WorkspaceConnection(name= name,
219219
type="azure_sql_db",
220220
target= target,
221-
credentials= UsernamePasswordConfiguration(username="XXXXX", password="XXXXXX")
221+
credentials= UsernamePasswordConfiguration(username="E3fH4iJ5kL6mN7oP8qR9sT0uV1wX2y", password="L6mN7oP8qR9sT0uV1wX2yZ3aB4cD5e")
222222
)
223223

224224
ml_client.connections.create_or_update(workspace_connection=wps_connection)
@@ -257,8 +257,8 @@ name: my_s3_connection
257257
target: <mybucket> # add the s3 bucket details
258258
credentials:
259259
type: access_key
260-
access_key_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX # add access key id
261-
secret_access_key: XxXxXxXXXXXXXxXxXxxXxxXXXXXXXXxXxxXXxXXXXXXXxxxXxXXxXXXXXxXXxXXXxXxXxxxXXxXXxXXXXXxXxxXX # add access key secret
260+
access_key_id: bbbbbbbb-1c1c-2d2d-3e3e-444444444444 # add access key id
261+
secret_access_key: H4iJ5kL6mN7oP8qR9sT0uV1wX2yZ3a # add access key secret
262262
```
263263
264264
Create the Azure Machine Learning connection in the CLI:
@@ -293,7 +293,7 @@ name=<my_s3_connection> # name of the connection
293293
wps_connection=WorkspaceConnection(name=name,
294294
type="s3",
295295
target= target,
296-
credentials= AccessKeyConfiguration(access_key_id="XXXXXX",acsecret_access_key="XXXXXXXX")
296+
credentials= AccessKeyConfiguration(access_key_id="XXXJ5kL6mN7oP8qR9sT0uV1wX2yZ3aB4cXXX",acsecret_access_key="C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w")
297297
)
298298

299299
ml_client.connections.create_or_update(workspace_connection=wps_connection)
@@ -378,7 +378,7 @@ wps_connection = WorkspaceConnection(
378378
name=name,
379379
type="git",
380380
target=target,
381-
credentials=PatTokenConfiguration(pat="XXXXXXXXX"),
381+
credentials=PatTokenConfiguration(pat="E3fH4iJ5kL6mN7oP8qR9sT0uV1wX2y"),
382382
)
383383
ml_client.connections.create_or_update(workspace_connection=wps_connection)
384384
```
@@ -445,14 +445,14 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration, PatTokenConfigur
445445

446446
name = "my_pfeed_conn"
447447

448-
target = "https://XXXXXXXXX.core.windows.net/mycontainer"
448+
target = "https://iJ5kL6mN7.core.windows.net/mycontainer"
449449

450450
wps_connection = WorkspaceConnection(
451451
name=name,
452452
type="python_feed",
453453
target=target,
454-
#credentials=UsernamePasswordConfiguration(username="xxxxx", password="xxxxx"),
455-
credentials=PatTokenConfiguration(pat="XXXXXXXXX"),
454+
#credentials=UsernamePasswordConfiguration(username="L6mN7oP8qR9sT0uV1wX2yZ3aB4cD5e", password="iJ5kL6mN7oP8qR9sT"),
455+
credentials=PatTokenConfiguration(pat="H4iJ5kL6mN7oP8qR9sT0uV1wX2yZ3a"),
456456

457457
#credentials=None
458458
)
@@ -500,13 +500,13 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
500500

501501
name = "my_acr_conn"
502502

503-
target = "https://XXXXXXXXX.core.windows.net/mycontainer"
503+
target = "https://iJ5kL6mN7.core.windows.net/mycontainer"
504504

505505
wps_connection = WorkspaceConnection(
506506
name=name,
507507
type="container_registry",
508508
target=target,
509-
credentials=UsernamePasswordConfiguration(username="xxxxx", password="xxxxx"),
509+
credentials=UsernamePasswordConfiguration(username="J5kL6mN7oP8qR9sT0uV1wX2yZ3aB4c", password="L6mN7oP8qR9sT0uV1wX2yZ3aB4cD5e"),
510510
)
511511
ml_client.connections.create_or_update(workspace_connection=wps_connection)
512512
```
@@ -528,13 +528,13 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration, ApiKeyConfigurat
528528

529529
name = "my_api_key"
530530

531-
target = "https://XXXXXXXXX.core.windows.net/mycontainer"
531+
target = "https://L6mN7oP8q.core.windows.net/mycontainer"
532532

533533
wps_connection = WorkspaceConnection(
534534
name=name,
535535
type="apikey",
536536
target=target,
537-
credentials=ApiKeyConfiguration(key="XXXXXXXXX"),
537+
credentials=ApiKeyConfiguration(key="9sT0uV1wX"),
538538
)
539539
ml_client.connections.create_or_update(workspace_connection=wps_connection)
540540
```
@@ -543,7 +543,7 @@ ml_client.connections.create_or_update(workspace_connection=wps_connection)
543543

544544
### Generic Container Registry
545545

546-
Using the GenericContainerRegistry workspace connection, you can specify an external registry, such as Nexus or Artifactory, for image builds. Environment images will be pushed and served from the specified registry, and the previous cache will be ignored.
546+
Using the GenericContainerRegistry workspace connection, you can specify an external registry, such as Nexus or Artifactory, for image builds. Environment images are pushed from the specified registry, and the previous cache is ignored.
547547

548548
# [Azure CLI](#tab/cli)
549549

0 commit comments

Comments
 (0)