Azure / Azure/azureml-examples

Datastore Registering for ADLSGEN2 is throwing error

Open
#1,624 3 comments 0 reactions 0 assignees View on GitHub
example issue
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.