问题
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
Please use childItems to get all the files. And then use a foreach to iterate the childItems
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.
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