Created
September 8, 2020 07:50
-
-
Save ThomasPe/ea06794275c961a8735218e9489a7c3f to your computer and use it in GitHub Desktop.
deployment.template.json Full
This file contains hidden or 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
{ | |
"$schema-template": "2.0.0", | |
"modulesContent": { | |
"$edgeAgent": { | |
"properties.desired": { | |
"schemaVersion": "1.0", | |
"runtime": { | |
"type": "docker", | |
"settings": { | |
"minDockerVersion": "v1.25", | |
"loggingOptions": "", | |
"registryCredentials": { | |
"myazurecontainerregistryname": { | |
"username": "${CONTAINER_REGISTRY_USERNAME}", | |
"password": "${CONTAINER_REGISTRY_PASSWORD}", | |
"address": "${CONTAINER_REGISTRY_HOST}" | |
} | |
} | |
} | |
}, | |
"systemModules": { | |
"edgeAgent": { | |
"type": "docker", | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-agent:1.0", | |
"createOptions": {} | |
} | |
}, | |
"edgeHub": { | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-hub:1.0", | |
"createOptions": { | |
"HostConfig": { | |
"PortBindings": { | |
"5671/tcp": [ | |
{ | |
"HostPort": "5671" | |
} | |
], | |
"8883/tcp": [ | |
{ | |
"HostPort": "8883" | |
} | |
], | |
"443/tcp": [ | |
{ | |
"HostPort": "443" | |
} | |
] | |
} | |
} | |
} | |
} | |
} | |
}, | |
"modules": { | |
"IdentityTranslationModule": { | |
"version": "1.0", | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "${MODULES.IdentityTranslationModule}", | |
"createOptions": {} | |
}, | |
"env": { | |
"simulatedTemperatureClientConnectionString": { | |
"value": "${SIMULATED_TEMPERATURE_CLIENT_CONNECTION_STRING}" | |
} | |
} | |
}, | |
"SimulatedTemperatureSensor": { | |
"version": "1.0", | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0", | |
"createOptions": {} | |
} | |
} | |
} | |
} | |
}, | |
"$edgeHub": { | |
"properties.desired": { | |
"schemaVersion": "1.0", | |
"routes": { | |
"IdentityTranslationModuleToIoTHub": "FROM /messages/modules/IdentityTranslationModule/outputs/* INTO $upstream", | |
"sensorToIdentityTranslationModule": "FROM /messages/modules/SimulatedTemperatureSensor/outputs/temperatureOutput INTO BrokeredEndpoint(\"/modules/IdentityTranslationModule/inputs/input1\")" | |
}, | |
"storeAndForwardConfiguration": { | |
"timeToLiveSecs": 7200 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment