Event Grid mqtt topic filtering for Azure functions

Thomas Jackson 0 Reputation points
2024-12-17T15:58:34.0866667+00:00

Hi all,

I am using Event Grid as an MQTT broker to receive data from multiple MQTT devices, each publishing to unique topics (e.g., "Devices/DeviceType1/Device1", "Devices/DeviceType2/Device100"). I aim to dynamically route messages from a specific mqtt topic to a specific function, rather than having a single topic trigger all functions.

Currently, all functions subscribed to Event Grid are triggered when any message arrives in the event grid broker. Is it possible to implement topic-based filtering within Event Grid to direct messages from specific MQTT topics to their designated functions? If this is not achievable, is there any alternatives that could do this?

Thanks in advance for any help.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,248 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
406 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.