Hello @Kim Streich ,
welcome to this moderated Azure community forum.
We achieved this using the specific module twin configuration like:
"properties": {
"desired": {
"url": 'http://realurl.com',
"SendInterval": 5,
"layeredProperties": {
"url": 'http://dummy.com',
"SendInterval": 60,
}
}
}
So the 'layeredProperties' are deployed via the layered deployments. If a module needs customization, we add the same property next to it.
In the code of the module that handles twin changes, we test for both properties where the layered-properties are overruled by non-layered properties.
So, the layered deployments only deploy generic values which can be overruled by custom properties.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.