Enumerate blob names in Azure Data Factory v2

Viewed 4517

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 Answers

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 enter image description here

  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. enter image description here

  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. enter image description here

You could find more documentations with this link.

Related