You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-connection.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,9 @@ az ml connection create --file my_snowflakedb_connection.yaml
96
96
### Option 2: Override the username and password at the command line
97
97
98
98
```azurecli
99
-
az ml connection create --file my_snowflakedb_connection.yaml --set credentials.username="H4iJ5kL6mN7oP8qR9sT0uV1wX2yZ3a" credentials.password="E3fH4iJ5kL6mN7oP8qR9sT0uV1wX2y"
99
+
az ml connection create --file my_snowflakedb_connection.yaml --set credentials.
100
+
username="<username>" credentials.
101
+
password="<password>"
100
102
```
101
103
102
104
# [Python SDK](#tab/python)
@@ -109,8 +111,8 @@ from azure.ai.ml import MLClient, load_workspace_connection
## Create a Snowflake DB connection that uses OAuth
157
159
158
-
The information in this section describe how to create a Snowflake DB connection that uses OAuth to authenticate.
160
+
The information in this section describes how to create a Snowflake DB connection that uses OAuth to authenticate.
159
161
160
162
> [!IMPORTANT]
161
163
> Before following the steps in this section, you must first [Configure Azure to issue OAuth tokens on behalf of the client](https://community.snowflake.com/s/article/Create-External-OAuth-Token-Using-Azure-AD-For-The-OAuth-Client-Itself). This configuration creates a service principal, which is required for the OAuth connection. You need the following information to create the connection:
@@ -271,7 +273,9 @@ az ml connection create --file my_sqldb_connection.yaml
271
273
### Option 2: Override the username and password in YAML file
272
274
273
275
```azurecli
274
-
az ml connection create --file my_sqldb_connection.yaml --set credentials.username="A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u" credentials.password="N7oP8qR9sT0uV1wX2yZ3aB4cD5eF6g"
276
+
az ml connection create --file my_sqldb_connection.yaml --set credentials.
277
+
username="<username>" credentials.
278
+
password="<password>"
275
279
```
276
280
277
281
# [Python SDK](#tab/python)
@@ -284,8 +288,8 @@ from azure.ai.ml import MLClient, load_workspace_connection
0 commit comments