An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
Hello @Paul Lee ,
you want to be able to stop and start modules/containers and you want to deploy different modules for different devices.
regarding starting and stopping devices, Azure IoT Edge works with a Deployment manifest in which is stated which modules are started or stopped.
You could try to start modules locally (with some logic running next to the Azure IoT Edge runtime) but this will probably be overruled by Azure IoT Edge.
One solution is to send the motion information to the cloud, to an IoT Hub, and have an Azure Function control the device deployment manifest. (see the status property)
On the other hand, is it possible to keep the modules running but keep them in idle/sleep mode (not executing logic except for waiting to start doing stuff again)? Then you only need to turn the motion information into commands/routes messages into controlling the idle/sleep mode of the logic within the modules.
Also notice the answer from @Satish , the deployment manifest also offers manipulating the restart policy for individual modules.
Regarding the deployment of logic at scale, check out layered deployments offered for Azure IoT Edge devices. based on context text (what are the abilities of devices), different (partial) deployments are sent. You can even see the impact (how many devices are targeted, how many have picked it up).
I'm not sure if there is a pipeline job for requesting this data but it's available using the API.
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.