1

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. ...

  • Could you please share more details what you tried and have you got any error result? –  Jun 22 '22 at 07:42
  • The blob trigger is a function that listen to a blob container, when a file is detected the function runs some codes. I want to do the same thing, but I want to listen to multiple containers (sources) – hicham zghari Jun 22 '22 at 07:45
  • you probably want to have a look at evet grid trigger for blob: https://learn.microsoft.com/en-us/azure/azure-functions/functions-event-grid-blob-trigger?tabs=csharp – Thomas Jun 22 '22 at 08:20

1 Answers1

2

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.

RajkumarPalnati
  • 541
  • 2
  • 6