Details
-
Type:
Task
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Create and Delete Devices in Azure IoT Hub
-
Sprint:MEN Sprint 154
-
Story Points:5
-
Epic Link:
-
Backlog:yes
-
Days in progress:9
Description
Implement a CLI command in iot-manager that syncs all devices available in the service, across all different tenants, to the Cloud providers. This CLI will be invoked periodically via cronjobs to ensure the devices are fully in sync.
- Loop over all the devices, sorted by tenant ID
- Check if the device is available in the cloud provider
- If yes, sync the state
- If no, provision it
Acceptance criteria:
- New CLI command is available (sync-devices)
- Cronjob in the saas/helm repos run the CLI once a day