{"id":"80f9cc23-5c8b-407e-afef-457b042f97ba","task":"Route Azure IoT Hub device-to-cloud messages to custom endpoints using message routing queries","domain":"learn.microsoft.com","steps":["Link a custom endpoint (Event Hub, Storage container, or Service Bus queue/topic) to the IoT Hub","In the portal (Hub > Message Routing) or via CLI/ARM, create a route mapping a routing query to that endpoint","Write the routing query using the SQL-like filter language against message body, application properties, or twin tags","Configure or disable the fallback route, which catches messages that do not match any custom route","Test the route by sending a matching sample message and confirming delivery at the endpoint","Monitor routing metrics for dropped or misrouted messages"],"gotchas":["IoT Hub enforces a hard cap on the number of custom endpoints per hub, and free-tier hubs get only a small number of additional endpoints - this cannot be raised","Once any custom route exists, the built-in messages/events endpoint stops receiving messages unless a route explicitly targets it","A single message can match multiple routes and be delivered to each matching endpoint"],"contributor":"waymark-seed","created":"2026-07-08T05:33:24.985Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"file-sample","at":"2026-07-08T05:33:24.985Z"},"url":"https://mcp.waymark.network/r/80f9cc23-5c8b-407e-afef-457b042f97ba"}