Impossible to create a second endpoint

Millán Fernando 6 Reputation points
2020-12-11T15:04:58.733+00:00

Each IoT Hub route is associated with an endpoint. Currently, seems not possible to create routes nor endpoints using the Python SDK. Routes can be created using the Azure Client, but an endpoint must exist previously. So all this process described is done using Microsoft Azure Portal.
IoT Hubs are limited to 10 endpoints and 100 routes.

The process to create a route is simple; you need to go through:
IoT Hub, Message routing, Add a new route. In this section, you need to create an endpoint. For doing that, you need to click on Add endpoint, storage, pick a container, set the data format and path. Once it's created, you can select this endpoint, on the previous screen, and associate it with the new route. And, finally, create the route.

The problem happens when I try to create a second storage endpoint for a new route. I repeat the steps described, and when I create a second endpoint I get a pop-up saying that the second endpoint was created successfully. However, when I go back to the previous screen for creating the new route, I can only see the first endpoint in the section called "Azure Storage containers". I cannot associate a new route to the second endpoint.

Why is that? Am I doing something wrong or missing anything?

Thank you.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,137 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Millán Fernando 6 Reputation points
    2020-12-14T11:14:17.01+00:00

    I thought that it was impossible to create endpoints using the Azure client but actually it's possible to do that! I have 2 IoT Hub instances: one in the free tier and the other in the S1.

    Using the Azure Client, in the free tier, I get an error message stating that the maximum number of endpoints are exceeded. It's only allowed to have 1 endpoint. So the "successfully created" message shown in the web portal is incorrect.

    When I try to do the same operation in the S1 IoT Hub instance, using again the Azure Client, I get the IH400116 error. This seems to be a parsing problem in the connection string or some mismatched information that I cannot spot yet.

    PS: Will you allow creating IoT Hub endpoints from the Python SDK soon?

    Thanks.

    1 person found this answer helpful.