You are building an industrial IoT solution where you collect telemetry data from a number of temperature sensors installed on high-performance pumps.
Many of the sensors are legacy devices that output their telemetry data as plain, comma separated records.
Based on the message body of the telemetry data, the messages must be forwarded to a storage container, but in the cases where the temperature values coming from building 51 (which is a critical site) exceed 60 degrees the messages must be published to a Service Bus topic.
You need to define message routing.
Can you use the data from legacy sensors in your routing queries?
Click on the arrows to vote for the correct answer
A. B.Correct Answer: B.
Option A is incorrect because while the content of the messages can contain any data, routing queries assume JSON content.
Option C is CORRECT because it is allowed that the message body is not JSON format.
Message routing will be able to route the message, but in this case, routing queries cannot be applied to the message body.
References:
Yes, you can use the data from legacy sensors in your routing queries.
Azure IoT Hub provides a message routing feature that enables you to route incoming messages from your IoT devices to different endpoints, such as Azure Blob Storage, Azure Event Hubs, and Azure Service Bus. You can configure routing based on message properties, system properties, and custom application properties.
In this scenario, you can configure the message routing to route the incoming telemetry messages to an Azure Blob Storage container. You can use a routing query to filter the messages based on the temperature value coming from building 51. If the temperature value exceeds 60 degrees, you can configure the message routing to publish the messages to a Service Bus topic.
Since the legacy sensors output their telemetry data as plain, comma-separated records, you need to ensure that the data is in a format that can be used in the routing query. You can use Azure Stream Analytics to preprocess the data and convert it into a format that can be used in the routing query.
In summary, you can use the data from legacy sensors in your routing queries by preprocessing the data and converting it into a format that can be used in the routing query.