Azure edgeAgent in N/A status on Azure portal for 4 out 20 devices
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.
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