Unit iotedge.service could not be found.

alvin loke 20 Reputation points
2023-03-15T07:36:26.1666667+00:00

https://learn.microsoft.com/en-us/training/modules/deploy-prebuilt-module-edge-device/4-exercise-setup-communication

I was trying out this exercise from the following IoT course. But when I tried to type in this: sudo systemctl status iotedge

I got this error message instead: Unit iotedge.service could not be found.

How do I resolve this?

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.
581 questions
{count} votes

Accepted answer
  1. LeelaRajeshSayana-MSFT 16,786 Reputation points
    2023-03-16T16:44:36.5433333+00:00

    Hi @alvin loke Greetings! Upon further investigation, we identified that the command sudo systemctl status iotedge is outdated and is taken from old versions of IoT Edge. I have tested the command on a VM where I deployed IoT Edge version 1.1.x and the command returns the output as shown in the tutorial. Please find the below image for reference.

    User's image

    However, the same command returns ***Unit iotedge.service could not be found. ***message when tested against IoT Edge version 1.4.x. To check the system status on 1.4.x versions, please use the following command sudo iotedge system status

    Please refer the following image taken from Edge device with 1.4.9 version.

    User's image

    We will work on modifying the contents in the tutorial to be compatible with latest versions. Please refer the official documentation on IoT Edge 1.4 version which provides the same quick start guide here - https://learn.microsoft.com/en-us/azure/iot-edge/quickstart-linux?view=iotedge-1.4

    Please let us know if you still have any questions and we would be glad to help you.


    If the response helped, do Mark the answer as useful. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.  

    7 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.