Make the iotedge module update its credentials before they expire

Gopikrishnan Bahuleyan Pillai 36 Reputation points
2024-09-25T09:27:58.34+00:00

In the support request TrackingID#2408120030005983, it is mentioned that "Edge Hub periodically checks credentials of all connected modules. If any credentials are expired, it disconnects the module and expects it to reconnect".

I want to know how this happens under the hood; like will Edge kill the module and start it again.
Also, how to make the module update its credentials before they expire.
Some code samples would be really helpful.

Background : Have 2 iot egde modules. Inter module communication via direct method is failing at times. Manual restart of module makes it work. Understanding that one of the module is failing to restart/reconnect.

Currently using :

  • iotedge version 1.4.3,
  • host os: Ubuntu 20.04,
  • iot edge module with: Microsoft.Azure.Devices.Client 1.42.3
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
576 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.