Multiple triggers for an Azure Function

Naren picture Naren · Jan 17, 2017 · Viewed 8.7k times · Source

We have an Azure Function that has an event hub trigger. Is it possible to have a trigger on more than one event hub for the same Azure Function?

Answer

Ling Toh picture Ling Toh · Jan 17, 2017

No, this is not a supported scenario at the moment.

From comments (Ling Toh Jan 18 '17 at 18:23): There are no plans to support multiple triggers per Function. You will have to create a Function for each EventHub. If there is common code that may be shared between Functions, you may move them to a helper method that can be called from each Function.