Module route configuration in Iot Edge layered deployment

Stefano Cimini 41 Reputation points

Hi all,
As stated in the documentation ( 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 (

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

Accepted answer
  1. VenkatYalla-0009 751 Reputation points

    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:


    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful