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.
Azure IoT Hub Routes to EventHub Cannot be Added
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.
1 additional answer
Sort by: Most helpful
-
AshokPeddakotla-MSFT 33,756 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
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
Create Routing to Event Hub
Click on Routes > Add -> Provide Route name and Select Endpoint created in previous step. Click on Save
Please check the steps and let us know if you are still blocked.