Azure / Azure/azureml-examples
Datastore Registering for ADLSGEN2 is throwing error
- Dominant language
- Jupyter Notebook
- Stars
- 2k
- Forks
- 1.7k
- Avg merge
- 18h 18m
- Merged PRs (30d)
- 2
Description
## Which example? Describe the issue
Code Snippet:
from azure.ai.ml.entities import (
AzureDataLakeGen2Datastore
)
adlsg2_datastore = AzureDataLakeGen2Datastore(
name="adls-gen2-example",
description="Datastore pointing to an Azure Data Lake Storage Gen2.",
account_name="mytestdatalakegen2",
filesystem="my-gen2-container",
credentials={
"tenant_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"client_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
},
)
ml_client.create_or_update(adlsg2_datastore)
Error: AttributeError: 'dict' object has no attribute '_to_rest_object'
Contributor guide
Assessment
This issue has not been assessed yet.