Module route configuration in Iot Edge layered deployment

Stefano Cimini 41 Reputation points
2021-09-27T10:52:34.503+00:00

Hi all,
As stated in the documentation (https://learn.microsoft.com/en-us/azure/iot-edge/module-deployment-monitoring?view=iotedge-2020-11#layered-deployment) a layered deployment is not able to configure system modules : "The system runtime modules, edgeAgent and edgeHub, are not configured as part of a layered deployment. Any IoT Edge device targeted by a layered deployment needs a standard automatic deployment applied to it first. The automatic deployment provides the base upon which layered deployments can be added."

The problem is that the module routes are configured at $edgeHub level, below an example from the documentation (https://learn.microsoft.com/en-us/azure/iot-edge/module-composition?view=iotedge-2020-11)

{
"modulesContent": {
"$edgeAgent": { ... },
"$edgeHub": {
"properties.desired": {
"schemaVersion": "1.1",
"routes": {
"route1": "FROM <source> WHERE <condition> INTO <sink>",
"route2": {
"route": "FROM <source> WHERE <condition> INTO <sink>",
"priority": 0,
"timeToLiveSecs": 86400
}
},

"storeAndForwardConfiguration": {
"timeToLiveSecs": 10
}
}
},
"module1": { ... },
"module2": { ... }
}
}

Would it be possible to configure module routes also in layered deployments? If not are there any plans to support it?

Thanks in advance

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.
535 questions
0 comments No comments
{count} votes

Accepted answer
  1. VenkatYalla-0009 751 Reputation points
    2021-09-27T22:13:27.023+00:00

    It is possible to specify routes in a layered deployment, and it will get merged with routes in other applied layers in the final deployment:

    135694-cleanshot-2021-09-27-at-151102.png

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful