简体   繁体   中英

Get custom metadata for blob files in Azure data factory

I have few 100 files in a folder in Blob Storage. Each of the files have custom metadata (Dictionary type). So when traversing through all files I need to get those metadata of each files.

So how to read that details. I tried using GetMetadata feature which has some hardcoded features like, exists, filename, lastedit etc. But I need to get the custom metadata of those files.

Please share some ideas.

@Sandeep

I am assuming you're looking to get the user-defined Metadata through Get Meta data Feature.

Unfortunately, this is currently not possible - the activity only returns the predefined set of Metada.

The list of Metadata supported has been documented here .

在此处输入图像描述

Workaround

One of the workarounds I can think is make use of the Web Activity in the ADF and hit the REST API Get Blob Properties

The Get blob properties API returns all user-defined metadata, standard HTTP properties, and system properties for the blob.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM