1
votes

I have copied data to azure blob container using the copy activity.i was able to use that to trigger my azure function using Blob trigger.However my req is to call the azure function activity that can be configured in azure datafactory pipeline.to that i need to pass the blob container path so that the azure function based on the HTTP trigger can read from this path.Blob trigger works but isnt allowed.Any idea as to how to get the path of the container and pass it to the azure function activity?

Edit:- i added this enter image description here

And the output of the path in the request sent to the HTTPTrigger of azure func looks like this

enter image description here

This is where i need the fully formed path post the copy say folder/myfolder/2010/10/01 However i dont.


-----------------------UPDATE---------------------------------------------------- this is the sink dataset enter image description here

with the connection of the dataset(sink)like this enter image description here

and my copypipeline looks like this enter image description here

ran the debug and the copy instead of folder/myfolder/2020/10/01 gives folder/myfolder/@variables('data')

enter image description here

1

1 Answers

1
votes

According to the description of your question, it seems you do not know the target blob path of the "Copy" activity. I guess you use pipeline parameter to input the blob path in your data factory. Something like below:

enter image description here

So in the HTTP trigger function request body, you just need to choose the testPath.

enter image description here

If your function request body need to be like {"path":"xxx"}, you can use "concat()" function in data factory to join the string together.

==================================Update=================================

enter image description here

enter image description here