@@ -180,7 +180,7 @@ ml_client.create_or_update(store)
180
180
181
181
``` python
182
182
from azure.ai.ml.entities import AzureDataLakeGen2Datastore
183
- from azure.ai.ml.entities._datastore.credentials import ServicePrincipalCredentials
183
+ from azure.ai.ml.entities._credentials import ServicePrincipalConfiguration
184
184
185
185
from azure.ai.ml import MLClient
186
186
@@ -191,7 +191,7 @@ store = AzureDataLakeGen2Datastore(
191
191
description = " Datastore pointing to an Azure Data Lake Storage Gen2." ,
192
192
account_name = " mytestdatalakegen2" ,
193
193
filesystem = " my-gen2-container" ,
194
- credentials = ServicePrincipalCredentials (
194
+ credentials = ServicePrincipalConfiguration (
195
195
tenant_id = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ,
196
196
client_id = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ,
197
197
client_secret = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
@@ -356,7 +356,7 @@ ml_client.create_or_update(store)
356
356
357
357
``` python
358
358
from azure.ai.ml.entities import AzureDataLakeGen1Datastore
359
- from azure.ai.ml.entities._datastore.credentials import ServicePrincipalCredentials
359
+ from azure.ai.ml.entities._credentials import ServicePrincipalConfiguration
360
360
from azure.ai.ml import MLClient
361
361
362
362
ml_client = MLClient.from_config()
@@ -365,7 +365,7 @@ store = AzureDataLakeGen1Datastore(
365
365
name = " adls_gen1_example" ,
366
366
description = " Datastore pointing to an Azure Data Lake Storage Gen1." ,
367
367
store_name = " mytestdatalakegen1" ,
368
- credentials = ServicePrincipalCredentials (
368
+ credentials = ServicePrincipalConfiguration (
369
369
tenant_id = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ,
370
370
client_id = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ,
371
371
client_secret = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
@@ -466,7 +466,7 @@ ml_client.create_or_update(store)
466
466
467
467
``` python
468
468
from azure.ai.ml.entities import AzureDataLakeGen1Datastore
469
- from azure.ai.ml.entities._datastore.credentials import ServicePrincipalCredentials
469
+ from azure.ai.ml.entities._credentials import ServicePrincipalConfiguration
470
470
from azure.ai.ml import MLClient
471
471
472
472
ml_client = MLClient.from_config()
@@ -485,7 +485,7 @@ store = OneLakeDatastore(
485
485
name = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Files" , # {your_one_lake_artifact_guid}/Files
486
486
type = " lake_house"
487
487
)
488
- credentials = ServicePrincipalCredentials (
488
+ credentials = ServicePrincipalConfiguration (
489
489
tenant_id = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ,
490
490
client_id = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ,
491
491
client_secret = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
0 commit comments