Azure IoT Edge fails to start module from private repo

Omar Navarro 331 Reputation points
2022-07-22T15:17:20.817+00:00

After applying the deployment manifest

sudo az iot edge set-modules --hub-name "$IOT_HUB_NAME" --device-id "$DEVICE_ID" --content "$MANIFEST_FILE_PATH_RUNNING" --only-show-error -o table  

the Agent fails to initialize container from private repository. The container remains in created state although the manifest defines the container's status as "running". Credentials for the repo are indeed provided in the properties.desired of edgeAgent

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.
573 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 32,556 Reputation points MVP
    2022-07-23T08:56:15.757+00:00

    Hello @Omar Navarro ,

    you are deploying a deployment manifest to an Azure IoT Edge device.

    This deployment manifest describes (among other things) which docker containers should be deployed, complete with environment variables, and create options and module twin.

    The edge device will load the containers from registries as described in the manifest.

    If the registry is secured, you must provide registry credentials in the deployment manifest too, as seen in the message.

    In the Azure portal, adding credentials is easy:

    224002-image.png

    This will end up in the deployment manifest as part of the desired properties of the edgeAgent:

    224012-image.png

    You can find the secret as Access keys:

    223992-image.png


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.