Azure IoT Hub Routes to EventHub Cannot be Added

Fernando 236 Reputation points
2021-03-10T19:53:03.427+00:00

I'm trying to add an EventHub-based route to an Azure IoT Hub and am getting this error:

"Resource Provider does not support any route matching the request URI. If this is a request for an entity with multi-segment names, encode '/' with '~' in the entity name."

It is unclear why I am seeing this. I am using an already created EventHub that I had tested with previously and the name has not changed.

There is no / or ~ in the name of the Endpoint, event hub namespace, or the event hub itself as far as I can tell.

I've been having periodic issues the last few days with Azure IoT Hubs. Is this related? Or is there something I need to change to allow these endpoints to be created?

I've tried both the Create Endpoint workflow in the Azure IoT Hub Messaging/Routing part of the console directly and the one that is a part of the "Create Route" workflow.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
382 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,124 questions
0 comments No comments
{count} votes

Accepted answer
  1. Fernando 236 Reputation points
    2021-03-11T18:33:26.413+00:00

    These were approximately the steps I was taking (I automated parts of this with ARM templates) but the issue seems to have been another transient error.


1 additional answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,491 Reputation points
    2021-03-11T15:08:11.077+00:00

    @Fernando We are sorry for the inconvenience caused. There are no known issues at our end for adding routes to the IoT Hub.

    You have mentioned, I am using an already created EventHub that I had tested with previously and the name has not changed. You mean was it working earlier and now its not working?

    I've been having periodic issues the last few days with Azure IoT Hubs. Is this related? Or is there something I need to change to allow these endpoints to be created?

    How exactly have you added an endpoint? What are the other issues you are facing? I see that in your previous queries, issue related to Can't Access Devices from Azure IoT Hub has been resolved by the PG with the fix.

    You need to create an end point first and then add a route.

    Below are the steps for creating and adding an Event hub endpoint routing from IoT Hub. Please verify the steps incase if you missed any.

    Create an Event Hub name space and event hub

    76718-image.png

    76862-image.png

    Create Event Hub Endpoint

    Goto Azure portal -> Select your IoTHub -> Click on Message Routing -> Click on Custom endpoints -> Click on Add -> Event hubs

    Provide Endpoint name and select the Event hub instance. Click on Create

    76729-image.png

    76832-image.png

    Create Routing to Event Hub

    Click on Routes > Add -> Provide Route name and Select Endpoint created in previous step. Click on Save

    76719-image.png

    Please check the steps and let us know if you are still blocked.

    0 comments No comments