Skip to content

Commit a3851ec

Browse files
committed
Requested file updates.
1 parent 0112c0e commit a3851ec

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
120120

121121
target= "jdbc:snowflake://<myaccount>.snowflakecomputing.com/?db=<mydb>&warehouse=<mywarehouse>&role=<myrole>"
122122
# 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",
125126
target= target,
126127
credentials= UsernamePasswordConfiguration(username="XXXXX", password="XXXXXX")
127128
)
@@ -193,7 +194,9 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
193194
target= "Server=tcp:<myservername>,<port>;Database=<mydatabase>;Trusted_Connection=False;Encrypt=True;Connection Timeout=30"
194195
# add the sql servername, port addresss and database
195196

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",
197200
target= target,
198201
credentials= UsernamePasswordConfiguration(username="XXXXX", password="XXXXXX")
199202
)
@@ -253,7 +256,9 @@ from azure.ai.ml.entities import WorkspaceConnection
253256
from azure.ai.ml.entities import AccessKeyConfiguration
254257

255258
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",
257262
target= target,
258263
credentials= AccessKeyConfiguration(access_key_id="XXXXXX",acsecret_access_key="XXXXXXXX")
259264
)

articles/machine-learning/how-to-import-data-assets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ from azure.ai.ml import MLClient
112112
# Supported connections include:
113113
# Connection: azureml:<workspace_connection_name>
114114
# Supported paths include:
115-
# Datastore: azureml://datastores/<data_store_name>/paths/<my_path>/${{name}}
115+
# path: azureml://datastores/<data_store_name>/paths/<my_path>/${{name}}
116116

117117
ml_client = MLClient.from_config()
118118

@@ -145,7 +145,7 @@ $schema: http://azureml/sdk-2-0/DataImport.json
145145
# Supported connections include:
146146
# Connection: azureml:<workspace_connection_name>
147147
# Supported paths include:
148-
# Datastore: azureml://datastores/<data_store_name>/paths/<my_path>/${{name}}
148+
# path: azureml://datastores/<data_store_name>/paths/<my_path>/${{name}}
149149

150150

151151
type: uri_folder
@@ -173,7 +173,7 @@ from azure.ai.ml import MLClient
173173
# Supported connections include:
174174
# Connection: azureml:<workspace_connection_name>
175175
# Supported paths include:
176-
# Datastore: azureml://datastores/<data_store_name>/paths/<my_path>/${{name}}
176+
# path: azureml://datastores/<data_store_name>/paths/<my_path>/${{name}}
177177

178178
ml_client = MLClient.from_config()
179179

0 commit comments

Comments
 (0)