Azure edgeAgent in N/A status on Azure portal for 4 out 20 devices

RJ 6 Reputation points
2021-06-11T11:21:30.32+00:00

I deploy around 20 IoT Edge devices using automation script ARM/azure cli commands. These edge devices are nothing but VMs. I provision the edge Devices by specifying cloud-init config in VM ARM template. However out of 20, around 3-4 devices somehow have edge Agent in N/A state.

I checked the logs on the respective VMs, iotedge list shows edgeAgent is in running state. But I do see some errors in the edgeAgent logs. Attaching the screenshot.

104740-edgeagenterr.jpg

Another thing I notice is, on the portal when I navigate to an edgeDevice whose status is N/A, and click on Troubleshoot->Restart Edge Agent , the edgeAgent comes to correct state. But I cannot do this manually for all offline devices. Can somebody help me with the root cause, as to why this is happening in few devices and few devices are all fine.

Edge runtime version I used is : 1.2.0

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.
534 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
{count} votes