August 12, 2021 - azure iot

Azure IoT Edge Troubleshooting

Xavier Geerinck

@XavierGeerinck

Working with Azure IoT Edge might be difficult sometimes seeing some of the errors that are not that easy to understand. That's why I want to provide this dedicated post with Troubleshooting tips in case you get problems.

If you ever find yourself stuck, comment below so I can help you take a look!

Useful Commands

CommandDescription
sudo iotedge system statusCheck the status of the IoT Edge Services
sudo iotedge system logsView all logs of IoT Edge
sudo iotedge system restartRestart the IoT Edge services
sudo iotedge checkCheck the configuration Files
journalctl -u iotedge -fJournal CTL logs
sudo apt-get remove --purge aziot-edge aziot-identity-service -yRemove the entire IoT Edge service

Useful Links

LinkDescription
Create OptionsContains example of port bindings
Derive a new Key DPSDerive a new key for Group Enrollments in DPS

Important Locations

LocationDescription
/etc/aziot/config.tomlThe configuration file
/var/lib/aziotCertificates, Keys, ...

Did you enjoy reading? Or do you want to stay up-to-date of new Articles?

Consider sponsoring me or providing feedback so I can continue creating high-quality articles!

Xavier Geerinck © 2020

Twitter - LinkedIn