An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
Hello @shekoofeh dehkhodaei,
welcome to this Azure Community forum.
Azure IoT Edge should be able to restart in an offline situation for months or even years.
The problem seen seems to be related to the clock as indicated.
This is because there are several certificates involved when running an Azure IoT Edge solution.
Apart from the TLS connection with the IoT Hub and the optional certificate for the IoT hub device identity registration, a certificate is used to secure the inter module communication.
If you have ruggedized your device, you have probably seen that Azure IoT edge comes standard with those certificated, valid for 60 days only.
I have never used an edge device without battery backup for the internal clock but having a correct time is essential. Can you consider adding battery support?
NTP is mentioned. Making use of a cloud based NTP server is counter productive in offline scenarios.
Can you run an NTP server on the local network?
Thinking out of the box but not endorsing this, you could try to replace the certificates with custom ones that are valid... Check this blog post (based on the older 1.1 version of Azure IoT Edge but the principal is still the same) for more information about providing custom certificates.
--
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.