@@ -120,8 +120,9 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
120
120
121
121
target= " jdbc:snowflake://<myaccount>.snowflakecomputing.com/?db=<mydb>&warehouse=<mywarehouse>&role=<myrole>"
122
122
# add the Snowflake account, database, warehouse name and role name here. If no role name provided it will default to PUBLIC
123
-
124
- wps_connection = WorkspaceConnection(type = " snowflake" ,
123
+ name= < my_snowflake_connection> # name of the connection
124
+ wps_connection = WorkspaceConnection(name = name,
125
+ type = " snowflake" ,
125
126
target = target,
126
127
credentials = UsernamePasswordConfiguration(username = " XXXXX" , password = " XXXXXX" )
127
128
)
@@ -193,7 +194,9 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
193
194
target= " Server=tcp:<myservername>,<port>;Database=<mydatabase>;Trusted_Connection=False;Encrypt=True;Connection Timeout=30"
194
195
# add the sql servername, port addresss and database
195
196
196
- wps_connection = WorkspaceConnection(type = " azure_sql_db" ,
197
+ name= < my_sql_connection> # name of the connection
198
+ wps_connection = WorkspaceConnection(name = name,
199
+ type = " azure_sql_db" ,
197
200
target = target,
198
201
credentials = UsernamePasswordConfiguration(username = " XXXXX" , password = " XXXXXX" )
199
202
)
@@ -253,7 +256,9 @@ from azure.ai.ml.entities import WorkspaceConnection
253
256
from azure.ai.ml.entities import AccessKeyConfiguration
254
257
255
258
target = " https://<mybucket>.amazonaws.com" # add the s3 bucket details
256
- wps_connection = WorkspaceConnection(type = " s3" ,
259
+ name= < my_s3_connection> # name of the connection
260
+ wps_connection = WorkspaceConnection(name = name,
261
+ type = " s3" ,
257
262
target = target,
258
263
credentials = AccessKeyConfiguration(access_key_id = " XXXXXX" ,acsecret_access_key = " XXXXXXXX" )
259
264
)
0 commit comments