Search code examples
azureazure-functionsazure-blob-storageazure-blob-trigger

Can a blob trigger function use multiple sources and destination?


I have an azure function blob trigger, and I want to use many sources and destinations for this function like the following example:

If the container1 is trigged, write in output1. If the container2 is trigged, write in output2. ...


Solution

  • It's not possible to listen to multiple sources (containers) from an Azure Blob Trigger Function.

    One of the solutions for this requirement given by @Cindy Pau and @rickvdboschis to use Azure Functions Event Grid Blob Trigger for listening to multiple containers and process the functionality according to your requirement.

    Refer to these SO Thread1 and SO Thread2 for more information.