AbstractDatastore Class

Represents the base class for all datastores.

Datastores reference storage services in Azure and contain connection information to them. When working with Azure Machine Learning experiments, you can retrieve datastores already registered with your workspace or register new ones. To get started with datastores including create a new datastore, see the Datastore class.

Note: When using a datastore to access data, you must have permission to access the data, which depends on the credentials registered with the datastore.

You should not work with this class directly. To create a datastore, use one of the register* methods of the Datastore class such as register_azure_blob_container.

Class AbstractDatastore constructor.

This is a base class and users should not be creating this class using the constructor.

Inheritance
builtins.object
AbstractDatastore

Constructor

AbstractDatastore(workspace, name, datastore_type)

Parameters

Name Description
workspace
Required
str

The workspace this datastore belongs to.

name
Required
str

The datastore name.

name
Required

The datastore type, for example, "AzureBlob".

workspace
Required
str

The workspace this datastore belongs to.

name
Required
str

The datastore name.

name
Required

The datastore type, for example, "AzureBlob".

datastore_type
Required

Methods

set_as_default

Set the current datastore as the default datastore.

unregister

Unregister the datastore, the underlying storage service will not be deleted or modified.

set_as_default

Set the current datastore as the default datastore.

set_as_default()

unregister

Unregister the datastore, the underlying storage service will not be deleted or modified.

unregister()

Attributes

datastore_type

Return the type of the datastore.

Returns

Type Description
str

The type of the datastore, for example, "AzureBlob".

name

Return the name of the datastore.

Returns

Type Description
str

The name of the datastore.

workspace

Return the workspace the datastore belows to.

Returns

Type Description

The workspace.