how to separate between internal trafic protocol and upstream protcol in iot edge ?

Ahmed Assad 266 Reputation points
2021-04-01T09:02:21.27+00:00

I want to separate bet two used protocol that edgeHub module use them to connect with hub and edge internal traffic
In my case i used MQTT as internal protocol bet edge modules and devices locally , and want to AMQP as upstream traffic with IoT hub , can i separate bet 2 traffic and determine protocol to each traffic ?

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
412 questions
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
590 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,235 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 34,691 Reputation points MVP
    2021-04-03T16:33:40.313+00:00

    The traffic between modules is separated by default, by using separate configurations.

    The upstream protocol configuration is part of the container create options and environment variables of the EdgeHub.

    In the create options, alternative ports can be set.

    In the environment variables, you can disable unused (or unwanted) protocols

    amqpSettings__enabled
    mqttSettings__enabled
    httpSettings__enabled

    (Note: the formatting corrupts the double underscored needed!)

    Keep in mind that this must be on par with the initial edgeAgent settings within the config,yaml. If you want to use eg. WebSockets, you need to specify is there also.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.