Enumerate blob names in Azure Data Factory v2

蹲街弑〆低调 提交于 2019-12-10 11:34:38

问题


I need to enumerate all the blob names that sit in an Azure Blobs container and dump the list to a file in another blob storage.

The part that I cannot master is the enumeration. Thanks.


回答1:


Get metadata activity is what you want. https://docs.microsoft.com/en-us/azure/data-factory/control-flow-get-metadata-activity

  1. Please use childItems to get all the files. And then use a foreach to iterate the childItems

  2. Inside the for each activity, you may want to check if each item is a file. You could use if activity and the following expression.

  3. Then in the "If true" activity, assume you want to copy data, you could use @item().name to get each of your file name.

You could find more documentations with this link.



来源:https://stackoverflow.com/questions/52014916/enumerate-blob-names-in-azure-data-factory-v2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!