Skip to content

Is it possible to retrieve metadata associated with the blobs using Datastore? #1286

Open
@mokarian

Description

@mokarian

We have some images in Azure storage account. All those images (blobs) have metadata .
calling download we can download the files from the provided path but we are missing the metadata associated to those files.
In fact metadata of the files contains important information on each image (e.g. tags) that we need them in our ML pipeline.
Is there any way to keep metadata of a blob storage when we download?
E.g.:

blob_datastore = Datastore.register_azure_blob_container(workspace=aml_workspace,
                                                             datastore_name=blob_datastore_name,
                                                             container_name=container_name,
                                                             account_name=account_name,
                                                             account_key=account_key)

def_blob_store = Datastore(aml_workspace, "train")

datastore_path = [
       DataPath(def_blob_store, '*.jpeg')]

file_dataset = Dataset.File.from_files(path=datastore_path)
file_dataset.download("files")

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions