Get the corresponding datastore object for an existing datastore by name from the given workspace.

get_datastore(workspace, datastore_name)

Arguments

workspace

The Workspace object.

datastore_name

A string of the name of the datastore.

Value

The azureml.data.azure_sql_database.AzureBlobDatastore, azureml.data.azure_sql_database.AzureFileDatastore, azureml.data.azure_sql_database.AzureSqlDatabaseDatastore, azureml.data.azure_data_lake_datastore.AzureDataLakeGen2Datastore, azureml.data.azure_postgre_sql_datastore.AzurePostgreSqlDatastore, or azureml.data.azure_sql_database.AzureSqlDatabaseDatastore object.