Skip to content

Commit 2a8eb04

Browse files
author
helenz-msft
committed
fixed images and other things
1 parent 06273a8 commit 2a8eb04

16 files changed

+87
-71
lines changed

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

Lines changed: 80 additions & 62 deletions
Large diffs are not rendered by default.

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: how-to
99
ms.author: franksolomon
1010
author: fbsolo-ms1
1111
ms.reviewer: yogipandey
12-
ms.date: 02/11/2025
12+
ms.date: 02/20/2024
1313
ms.custom: data4ml, ignite-2023, devx-track-azurecli
1414
# Customer intent: As an experienced Python developer, I need to make my data in Azure storage available to my remote compute resource to train my machine learning models.
1515
---
@@ -180,7 +180,7 @@ ml_client.create_or_update(store)
180180

181181
```python
182182
from azure.ai.ml.entities import AzureDataLakeGen2Datastore
183-
from azure.ai.ml.entities._credentials import ServicePrincipalConfiguration
183+
from azure.ai.ml.entities._datastore.credentials import ServicePrincipalCredentials
184184

185185
from azure.ai.ml import MLClient
186186

@@ -191,7 +191,7 @@ store = AzureDataLakeGen2Datastore(
191191
description="Datastore pointing to an Azure Data Lake Storage Gen2.",
192192
account_name="mytestdatalakegen2",
193193
filesystem="my-gen2-container",
194-
credentials=ServicePrincipalConfiguration(
194+
credentials=ServicePrincipalCredentials(
195195
tenant_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
196196
client_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
197197
client_secret= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
@@ -356,7 +356,7 @@ ml_client.create_or_update(store)
356356

357357
```python
358358
from azure.ai.ml.entities import AzureDataLakeGen1Datastore
359-
from azure.ai.ml.entities._credentials import ServicePrincipalConfiguration
359+
from azure.ai.ml.entities._datastore.credentials import ServicePrincipalCredentials
360360
from azure.ai.ml import MLClient
361361

362362
ml_client = MLClient.from_config()
@@ -365,7 +365,7 @@ store = AzureDataLakeGen1Datastore(
365365
name="adls_gen1_example",
366366
description="Datastore pointing to an Azure Data Lake Storage Gen1.",
367367
store_name="mytestdatalakegen1",
368-
credentials=ServicePrincipalConfiguration(
368+
credentials=ServicePrincipalCredentials(
369369
tenant_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
370370
client_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
371371
client_secret= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
@@ -466,7 +466,7 @@ ml_client.create_or_update(store)
466466

467467
```python
468468
from azure.ai.ml.entities import AzureDataLakeGen1Datastore
469-
from azure.ai.ml.entities._credentials import ServicePrincipalConfiguration
469+
from azure.ai.ml.entities._datastore.credentials import ServicePrincipalCredentials
470470
from azure.ai.ml import MLClient
471471

472472
ml_client = MLClient.from_config()
@@ -485,7 +485,7 @@ store = OneLakeDatastore(
485485
name="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Files", #{your_one_lake_artifact_guid}/Files
486486
type="lake_house"
487487
)
488-
credentials=ServicePrincipalConfiguration(
488+
credentials=ServicePrincipalCredentials(
489489
tenant_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
490490
client_id= "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
491491
client_secret= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
@@ -544,8 +544,6 @@ az ml datastore create --file my_onelakesp_datastore.yml
544544
```
545545
---
546546

547-
## [Create a datastore for OneLake Table with UI](create-datastore-with-UI.md#create-datastore-with-UI)
548-
549547
## Next steps
550548

551549
- [Access data in a job](how-to-read-write-data-v2.md#access-data-in-a-job)
-6.14 KB
Loading
-51.9 KB
Loading
-35.6 KB
Loading
-43.7 KB
Loading
-43.6 KB
Loading
-33.5 KB
Loading
-28.3 KB
Loading
-90 KB
Loading

0 commit comments

Comments
 (0)