Sai Venkatesh
Sai Venkatesh

Reputation: 61

How to rename files, as they are copied to a new location, with adf

I am performing copy activity from cosmosDB to Blob storage, collections will be copied to storage as files. I want those filenames to be renamed with "collectionname-date". The file should have name, followed by date and time as suffix to that. How can I achieve this?

Upvotes: 2

Views: 4192

Answers (1)

Jay Gong
Jay Gong

Reputation: 23792

I have to say i can't find any ways to get the collection name dynamically,but i implement other your requirements. Please see my configurations:

1.Cosmos db dataset:

as normal to set

enter image description here

2.Blob Storage dataset:

configure a parameter for it:

enter image description here

Then configure the dynamic file path:

enter image description here

Pass the collection static name(for me is coll) for the fileName param.

enter image description here

3.Output in Blob Storage:

enter image description here

Upvotes: 1

Related Questions