Skip to content

Commit 0156adc

Browse files
author
helenz-msft
committed
fixed sensitive information and change date
1 parent a1fb998 commit 0156adc

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

articles/machine-learning/create-datastore-with-UI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.reviewer: franksolomon
88
ms.service: azure-machine-learning
99
ms.subservice: mldata
1010
ms.topic: how-to
11-
ms.date: 02/14/2025
11+
ms.date: 02/28/2025
1212
#Customer intent: Existing solutions help link lakehouse files to Azure Machine Learning resources, and create a datastore through the SDK. However, some customers have lakehouse tables, and they want to create a datastore in Azure Machine Learning through the UI.
1313
---
1414

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

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ store = AzureBlobDatastore(
6565
container_name="data-container",
6666
protocol="https",
6767
credentials=AccountKeyConfiguration(
68-
account_key="XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX"
68+
account_key="aaaaaaaa-0b0b-1c1c-2d2d-333333333333"
6969
),
7070
)
7171

@@ -87,7 +87,7 @@ store = AzureBlobDatastore(
8787
account_name="mytestblobstore",
8888
container_name="data-container",
8989
credentials=SasTokenConfiguration(
90-
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"
90+
sas_token= "?xx=A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u&xx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1wx&xx=Ff6Gg~7Hh8.-Ii9Jj0Kk1Ll2Mm3Nn4_Oo5Pp6Qq7&xx=N7oP8qR9sT0uV1wX2yZ3aB4cD5eF6g&xxx=Ee5Ff~6Gg7.-Hh8Ii9Jj0Kk1Ll2Mm3_Nn4Oo5Pp6&xxx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w"
9191
),
9292
)
9393

@@ -125,7 +125,7 @@ description: Datastore pointing to a blob container.
125125
account_name: mytestblobstore
126126
container_name: data-container
127127
credentials:
128-
account_key: XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX
128+
account_key: aaaaaaaa-0b0b-1c1c-2d2d-333333333333
129129
```
130130
131131
Create the Machine Learning datastore in the CLI:
@@ -146,7 +146,7 @@ description: Datastore pointing to a blob container using SAS token.
146146
account_name: mytestblobstore
147147
container_name: data-container
148148
credentials:
149-
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
149+
sas_token: "?xx=A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u&xx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1wx&xx=Ff6Gg~7Hh8.-Ii9Jj0Kk1Ll2Mm3Nn4_Oo5Pp6Qq7&xx=N7oP8qR9sT0uV1wX2yZ3aB4cD5eF6g&xxx=Ee5Ff~6Gg7.-Hh8Ii9Jj0Kk1Ll2Mm3_Nn4Oo5Pp6&xxx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w"
150150
```
151151
152152
Create the Machine Learning datastore in the CLI:
@@ -192,9 +192,9 @@ store = AzureDataLakeGen2Datastore(
192192
account_name="mytestdatalakegen2",
193193
filesystem="my-gen2-container",
194194
credentials=ServicePrincipalCredentials(
195-
tenant_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
196-
client_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
197-
client_secret= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
195+
tenant_id= "bbbbcccc-1111-dddd-2222-eeee3333ffff",
196+
client_id= "44445555-eeee-6666-ffff-7777aaaa8888",
197+
client_secret= "Cc3Dd~4Ee5.-Ff6Gg7Hh8Ii9Jj0Kk1_Ll2Mm3Nn4",
198198
),
199199
)
200200

@@ -232,9 +232,9 @@ description: Datastore pointing to an Azure Data Lake Storage Gen2 instance.
232232
account_name: mytestdatalakegen2
233233
filesystem: my-gen2-container
234234
credentials:
235-
tenant_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
236-
client_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
237-
client_secret: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
235+
tenant_id: bbbbcccc-1111-dddd-2222-eeee3333ffff
236+
client_id: 44445555-eeee-6666-ffff-7777aaaa8888
237+
client_secret: Cc3Dd~4Ee5.-Ff6Gg7Hh8Ii9Jj0Kk1_Ll2Mm3Nn4
238238
```
239239
240240
Create the Machine Learning datastore in the CLI:
@@ -261,7 +261,7 @@ store = AzureFileDatastore(
261261
account_name="mytestfilestore",
262262
file_share_name="my-share",
263263
credentials=AccountKeyConfiguration(
264-
account_key= "XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX"
264+
account_key= "aaaaaaaa-0b0b-1c1c-2d2d-333333333333"
265265
),
266266
)
267267

@@ -283,7 +283,7 @@ store = AzureFileDatastore(
283283
account_name="mytestfilestore",
284284
file_share_name="my-share",
285285
credentials=SasTokenConfiguration(
286-
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"
286+
sas_token="?xx=A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u&xx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1wx&xx=Ff6Gg~7Hh8.-Ii9Jj0Kk1Ll2Mm3Nn4_Oo5Pp6Qq7&xx=N7oP8qR9sT0uV1wX2yZ3aB4cD5eF6g&xxx=Ee5Ff~6Gg7.-Hh8Ii9Jj0Kk1Ll2Mm3_Nn4Oo5Pp6&xxx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w"
287287
),
288288
)
289289

@@ -302,7 +302,7 @@ description: Datastore pointing to an Azure File Share.
302302
account_name: mytestfilestore
303303
file_share_name: my-share
304304
credentials:
305-
account_key: XxXxXxXXXXXXXxXxXxxXxxXXXXXXXXxXxxXXxXXXXXXXxxxXxXXxXXXXXxXXxXXXxXxXxxxXXxXXxXXXXXxXxxXX
305+
account_key: aaaaaaaa-0b0b-1c1c-2d2d-333333333333
306306
```
307307
308308
Create the Machine Learning datastore in the CLI:
@@ -323,7 +323,7 @@ description: Datastore pointing to an Azure File Share using an SAS token.
323323
account_name: mytestfilestore
324324
file_share_name: my-share
325325
credentials:
326-
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
326+
sas_token: "?xx=A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u&xx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1wx&xx=Ff6Gg~7Hh8.-Ii9Jj0Kk1Ll2Mm3Nn4_Oo5Pp6Qq7&xx=N7oP8qR9sT0uV1wX2yZ3aB4cD5eF6g&xxx=Ee5Ff~6Gg7.-Hh8Ii9Jj0Kk1Ll2Mm3_Nn4Oo5Pp6&xxx=C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w"
327327
```
328328
329329
Create the Machine Learning datastore in the CLI:
@@ -366,9 +366,9 @@ store = AzureDataLakeGen1Datastore(
366366
description="Datastore pointing to an Azure Data Lake Storage Gen1.",
367367
store_name="mytestdatalakegen1",
368368
credentials=ServicePrincipalCredentials(
369-
tenant_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
370-
client_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
371-
client_secret= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
369+
tenant_id= "bbbbcccc-1111-dddd-2222-eeee3333ffff",
370+
client_id= "44445555-eeee-6666-ffff-7777aaaa8888",
371+
client_secret= "Cc3Dd~4Ee5.-Ff6Gg7Hh8Ii9Jj0Kk1_Ll2Mm3Nn4",
372372
),
373373
)
374374

@@ -404,9 +404,9 @@ type: azure_data_lake_gen1
404404
description: Datastore pointing to an Azure Data Lake Storage Gen1 instance.
405405
store_name: mytestdatalakegen1
406406
credentials:
407-
tenant_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
408-
client_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
409-
client_secret: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
407+
tenant_id: bbbbcccc-1111-dddd-2222-eeee3333ffff
408+
client_id: 44445555-eeee-6666-ffff-7777aaaa8888
409+
client_secret: Cc3Dd~4Ee5.-Ff6Gg7Hh8Ii9Jj0Kk1_Ll2Mm3Nn4
410410
```
411411
412412
Create the Machine Learning datastore in the CLI:
@@ -451,10 +451,10 @@ ml_client = MLClient.from_config()
451451
store = OneLakeDatastore(
452452
name="onelake_example_id",
453453
description="Datastore pointing to an Microsoft fabric artifact.",
454-
one_lake_workspace_name="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", #{your_one_lake_workspace_guid}
454+
one_lake_workspace_name="bbbbbbbb-7777-8888-9999-cccccccccccc", #{your_one_lake_workspace_guid}
455455
endpoint="msit-onelake.dfs.fabric.microsoft.com" #{your_one_lake_endpoint}
456456
artifact = OneLakeArtifact(
457-
name="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Files", #{your_one_lake_artifact_guid}/Files
457+
name="cccccccc-8888-9999-0000-dddddddddddd/Files", #{your_one_lake_artifact_guid}/Files
458458
type="lake_house"
459459
)
460460
)
@@ -479,16 +479,16 @@ ml_client = MLClient.from_config()
479479
store = OneLakeDatastore(
480480
name="onelake_example_sp",
481481
description="Datastore pointing to an Microsoft fabric artifact.",
482-
one_lake_workspace_name="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", #{your_one_lake_workspace_guid}
482+
one_lake_workspace_name="bbbbbbbb-7777-8888-9999-cccccccccccc", #{your_one_lake_workspace_guid}
483483
endpoint="msit-onelake.dfs.fabric.microsoft.com" #{your_one_lake_endpoint}
484484
artifact = OneLakeArtifact(
485-
name="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Files", #{your_one_lake_artifact_guid}/Files
485+
name="cccccccc-8888-9999-0000-dddddddddddd/Files", #{your_one_lake_artifact_guid}/Files
486486
type="lake_house"
487487
)
488488
credentials=ServicePrincipalCredentials(
489-
tenant_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
490-
client_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
491-
client_secret= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
489+
tenant_id= "bbbbcccc-1111-dddd-2222-eeee3333ffff",
490+
client_id= "44445555-eeee-6666-ffff-7777aaaa8888",
491+
client_secret= "Cc3Dd~4Ee5.-Ff6Gg7Hh8Ii9Jj0Kk1_Ll2Mm3Nn4",
492492
),
493493
)
494494

@@ -504,11 +504,11 @@ $schema: http://azureml/sdk-2-0/OneLakeDatastore.json
504504
name: onelake_example_id
505505
type: one_lake
506506
description: Credential-less datastore pointing to a OneLake lakehouse.
507-
one_lake_workspace_name: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
507+
one_lake_workspace_name: "eeeeffff-4444-aaaa-5555-bbbb6666cccc"
508508
endpoint: "msit-onelake.dfs.fabric.microsoft.com"
509509
artifact:
510510
type: lake_house
511-
name: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Files"
511+
name: "1111bbbb-22cc-dddd-ee33-ffffff444444/Files"
512512
```
513513
514514
Create the Machine Learning datastore in the CLI:
@@ -526,15 +526,15 @@ $schema: http://azureml/sdk-2-0/OneLakeDatastore.json
526526
name: onelake_example_id
527527
type: one_lake
528528
description: Credential-less datastore pointing to a OneLake lakehouse.
529-
one_lake_workspace_name: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
529+
one_lake_workspace_name: "eeeeffff-4444-aaaa-5555-bbbb6666cccc"
530530
endpoint: "msit-onelake.dfs.fabric.microsoft.com"
531531
artifact:
532532
type: lake_house
533-
name: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Files"
533+
name: "1111bbbb-22cc-dddd-ee33-ffffff444444/Files"
534534
credentials:
535-
tenant_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
536-
client_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
537-
client_secret: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
535+
tenant_id: bbbbcccc-1111-dddd-2222-eeee3333ffff
536+
client_id: 44445555-eeee-6666-ffff-7777aaaa8888
537+
client_secret: Cc3Dd~4Ee5.-Ff6Gg7Hh8Ii9Jj0Kk1_Ll2Mm3Nn4
538538
```
539539
540540
Create the Machine Learning datastore in the CLI:

0 commit comments

Comments
 (0)