I have a blob creation trigger set and I wanted to be able to move the triggering file once it was processed. After a bit of hunting around, I found that we can pass the name of the file which triggered the storage event to the pipeline.
Create a parameter on the pipeline
Attach a storage trigger to the pipeline
When prompted for 'Trigger run parameters', set the pipeline parameter created in step 1 to '@trigger().outputs.body.fileName'
For pipeline tasks which you want to work with the triggering file, set the file of the dataset to the parameter from step 1
All well and good. So long as you set the container and directory appropriately, you can now work specifically with the triggering file.
My question here is, would it be possible to get a dropdown list of available variables here?
It would really help make this obvious, and who knows what else might be exposed which could be useful for our pipelines.
That is a little more long term though, so in the interim, is there a resource somewhere that shows exactly what is available to use here?