@@ -123,18 +123,18 @@ ml_client.create_or_update(store)
123
123
124
124
``` python
125
125
from azure.ai.ml.entities import AzureBlobDatastore
126
- from azure.ai.ml.entities._datastore.credentials import AccountKeyCredentials
126
+ from azure.ai.ml.entities import AccountKeyConfiguration
127
127
from azure.ai.ml import MLClient
128
128
129
129
ml_client = MLClient.from_config()
130
130
131
131
store = AzureBlobDatastore(
132
132
name = " blob_protocol_example" ,
133
- description = " Datastore pointing to a blob container using wasbs protocol." ,
133
+ description = " Datastore pointing to a blob container using https protocol." ,
134
134
account_name = " mytestblobstore" ,
135
135
container_name = " data-container" ,
136
- protocol = " wasbs " ,
137
- credentials = AccountKeyCredentials (
136
+ protocol = " https " ,
137
+ credentials = AccountKeyConfiguration (
138
138
account_key = " XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX"
139
139
),
140
140
)
@@ -146,7 +146,7 @@ ml_client.create_or_update(store)
146
146
147
147
``` python
148
148
from azure.ai.ml.entities import AzureBlobDatastore
149
- from azure.ai.ml.entities._datastore.credentials import SasTokenCredentials
149
+ from azure.ai.ml.entities import SasTokenConfiguration
150
150
from azure.ai.ml import MLClient
151
151
152
152
ml_client = MLClient.from_config()
@@ -156,7 +156,7 @@ store = AzureBlobDatastore(
156
156
description = " Datastore pointing to a blob container using SAS token." ,
157
157
account_name = " mytestblobstore" ,
158
158
container_name = " data-container" ,
159
- credentials = SasTokenCredentials (
159
+ credentials = SasTokenConfiguration (
160
160
sas_token = " ?xx=XXXX-XX-XX&xx=xxxx&xxx=xxx&xx=xxxxxxxxxxx&xx=XXXX-XX-XXXXX:XX:XXX&xx=XXXX-XX-XXXXX:XX:XXX&xxx=xxxxx&xxx=XXxXXXxxxxxXXXXXXXxXxxxXXXXXxxXXXXXxXXXXxXXXxXXxXX"
161
161
),
162
162
)
@@ -301,7 +301,7 @@ az ml datastore create --file my_files_datastore.yml
301
301
302
302
``` python
303
303
from azure.ai.ml.entities import AzureFileDatastore
304
- from azure.ai.ml.entities._datastore.credentials import AccountKeyCredentials
304
+ from azure.ai.ml.entities import AccountKeyConfiguration
305
305
from azure.ai.ml import MLClient
306
306
307
307
ml_client = MLClient.from_config()
@@ -311,7 +311,7 @@ store = AzureFileDatastore(
311
311
description = " Datastore pointing to an Azure File Share." ,
312
312
account_name = " mytestfilestore" ,
313
313
file_share_name = " my-share" ,
314
- credentials = AccountKeyCredentials (
314
+ credentials = AccountKeyConfiguration (
315
315
account_key = " XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX"
316
316
),
317
317
)
@@ -323,7 +323,7 @@ ml_client.create_or_update(store)
323
323
324
324
``` python
325
325
from azure.ai.ml.entities import AzureFileDatastore
326
- from azure.ai.ml.entities._datastore.credentials import SasTokenCredentials
326
+ from azure.ai.ml.entities import SasTokenConfiguration
327
327
from azure.ai.ml import MLClient
328
328
329
329
ml_client = MLClient.from_config()
@@ -333,7 +333,7 @@ store = AzureFileDatastore(
333
333
description = " Datastore pointing to an Azure File Share using SAS token." ,
334
334
account_name = " mytestfilestore" ,
335
335
file_share_name = " my-share" ,
336
- credentials = SasTokenCredentials (
336
+ credentials = SasTokenConfiguration (
337
337
sas_token = " ?xx=XXXX-XX-XX&xx=xxxx&xxx=xxx&xx=xxxxxxxxxxx&xx=XXXX-XX-XXXXX:XX:XXX&xx=XXXX-XX-XXXXX:XX:XXX&xxx=xxxxx&xxx=XXxXXXxxxxxXXXXXXXxXxxxXXXXXxxXXXXXxXXXXxXXXxXXxXX"
338
338
),
339
339
)
0 commit comments