AzureDataLakeGen2Datastore Class

Azure data lake gen 2 that is linked to an Azure ML workspace.

Inheritance
azure.ai.ml.entities._datastore.datastore.Datastore
AzureDataLakeGen2Datastore

Constructor

AzureDataLakeGen2Datastore(*, name: str, account_name: str, filesystem: str, description: str | None = None, tags: Dict | None = None, endpoint: str = 'core.windows.net', protocol: str = 'https', properties: Dict | None = None, credentials: CertificateConfiguration | ServicePrincipalConfiguration | None = None, **kwargs: Any)

Parameters

Name Description
name
Required
str

Name of the datastore.

account_name
Required
str

Name of the Azure storage account.

filesystem
Required
str

The name of the Data Lake Gen2 filesystem.

description
Required
str

Description of the resource.

tags
Required

Tag dictionary. Tags can be added, removed, and updated.

endpoint
Required
str

Endpoint to use to connect with the Azure storage account

protocol
Required
str

Protocol to use to connect with the Azure storage account

credentials
Required

Credentials to use for Azure ML workspace to connect to the storage.

properties
Required

The asset property dictionary.

kwargs
Required

A dictionary of additional configuration parameters.

Keyword-Only Parameters

Name Description
name
Required
account_name
Required
filesystem
Required
description
Required
tags
Required
endpoint
default value: core.windows.net
protocol
default value: https
properties
Required
credentials
Required

Methods

dump

Dump the datastore content into a file in yaml format.

dump

Dump the datastore content into a file in yaml format.

dump(dest: str | PathLike | IO, **kwargs: Any) -> None

Parameters

Name Description
dest
Required
Union[<xref:PathLike>, str, IO[AnyStr]]

The destination to receive this datastore's content. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable.

Attributes

base_path

The base path of the resource.

Returns

Type Description
str

The base path of the resource.

creation_context

The creation context of the resource.

Returns

Type Description

The creation metadata for the resource.

id

The resource ID.

Returns

Type Description

The global ID of the resource, an Azure Resource Manager (ARM) ID.

type