question

StefanoCimini-1299 avatar image
0 Votes"
StefanoCimini-1299 asked VenkatYalla-0009 commented

Module route configuration in Iot Edge layered deployment

Hi all,
As stated in the documentation (https://docs.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://docs.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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

VenkatYalla-0009 avatar image
0 Votes"
VenkatYalla-0009 answered VenkatYalla-0009 commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @VenkatYalla-0009,
Thanks for the response! So if it is possible to specify routes, I think that the documentation doesn't respect the current features of the layered deployment. Would it be possible to update the examples?

Thanks in advance

0 Votes 0 ·
1 Vote 1 ·