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:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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: