'Is there any way to know the storage account name when ADF pipeline is triggered using ADF Storage Event Trigger

I am trying to create a ADF Pipeline which gets triggered as soon as a file in uploaded into a storage account. After triggering some operations are performed. I am able to get folder path and file name of the uploaded file. I also wanted to get the storage account name as it is useful in the future processes. Is there any way to extract that.



Solution 1:[1]

Currently, there is no option to fetch the storage account name directly from storage event triggers.

As a workaround, you can create a pipeline parameter to store the storage account name and pass the value from the event trigger when creating it.

  1. Creating event trigger:
  • Here as we are selecting the storage name manually, pass the same storage name value to the parameter.

enter image description here

  • Here, in the value option provide the storage account name.

    enter image description here

  1. Create a parameter in the pipeline to pull the storage name from the trigger.

enter image description here

  1. Use the Set variable activity to show the parameter value which is passed from the trigger.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 NiharikaMoola-MT