Created
January 8, 2018 15:49
-
-
Save ianphil/b91d84f3f6f7d3d9048d3fe885602049 to your computer and use it in GitHub Desktop.
Used to configure filter module vsts deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"moduleContent": { | |
"$edgeAgent": { | |
"properties.desired": { | |
"schemaVersion": "1.0", | |
"runtime": { | |
"type": "docker", | |
"settings": { | |
"minDockerVersion": "v1.25", | |
"loggingOptions": "" | |
} | |
}, | |
"systemModules": { | |
"edgeAgent": { | |
"type": "docker", | |
"settings": { | |
"image": "microsoft/azureiotedge-agent:1.0-preview", | |
"createOptions": "{}" | |
} | |
}, | |
"edgeHub": { | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "microsoft/azureiotedge-hub:1.0-preview", | |
"createOptions": "{}" | |
} | |
} | |
}, | |
"modules": { | |
"tempSensor": { | |
"version": "1.0", | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "microsoft/azureiotedge-simulated-temperature-sensor:1.0-preview", | |
"createOptions": "{}" | |
} | |
}, | |
"filtermodule": { | |
"version": "1.0", | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "ianphilacrtest.azurecr.io/filtermodule:#{FilterModule.BuildId}#-linux-x64", | |
"createOptions": "{}" | |
} | |
} | |
} | |
} | |
}, | |
"$edgeHub": { | |
"properties.desired": { | |
"schemaVersion": "1.0", | |
"routes":{ | |
"sensorToFilter":"FROM /messages/modules/tempSensor/outputs/temperatureOutput INTO BrokeredEndpoint(\"/modules/filtermodule/inputs/input1\")", | |
"filterToIoTHub":"FROM /messages/modules/filtermodule/outputs/output1 INTO $upstream" | |
}, | |
"storeAndForwardConfiguration": { | |
"timeToLiveSecs": 7200 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment