Skip to content

Datastore Registering for ADLSGEN2 is throwing error #1624

Open
@GautamKumarSkyPointCloud

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions