question

RJ-3404 avatar image
0 Votes"
RJ-3404 asked AshokPeddakotla-MSFT commented

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.

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-hubazure-iot-edge
edgeagenterr.jpg (202.8 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @RJ-3404 ,

I'm not sure if all devices have the same issue.

Regarding the state of your devices, this can take some time until this is represented in the right way in the IoT Hub.

You deploy the Azure IoT Edge runtime using a script.

Did you also assign (custom) modules in the deployment manifest already?

Does this give the same result?



0 Votes 0 ·
RJ-3404 avatar image RJ-3404 SandervandeVelde42 ·

Hi @SandervandeVelde42 ,

No, all the devices does not show the same problem, a few among them does.

How much time is expected, because I have checked it for an hour or so, it never comes to correct state.

Yes, the IoT edge runtime is installed using cloud-init script, I do not assign any custom modules yet as I first expect the device to be in correct state which is : 417 -- The device's deployment configuration is not set

I also tired assigning the custom modules, but in that case also it has the same problem, device remains in N/A state and all modules including custom module also remain in N/A state.

As I said in my last post, if I do Troubleshoot->Restart Edge Agent , the device then comes to correct state. But since I need to deploy around say 50 devices, I cannot manually troubleshoot on the devices which has this problem.

Do you have any insight on the error "Updating reported properties failed with error The operation timed out"?


0 Votes 0 ·

Hello @RJ-3404,

thanks for the clarification.

No, this message does not sound familiar to me.

It seems to reach out to the IoTHub to update reported properties...

Can you double-check your edge devices are able to connect to the cloud (eg. ping 8.8.8.8 for HTTP)?

Depending on the protocol you use (AMQP, MQTT, over Websockets or not) are you sure there is no outbound limitation on any firewall?

If this all should work, please create an issue on the related Azure IoT Edge open source repo on .GitHub


1 Vote 1 ·
Show more comments

0 Answers