IoT Edge Runtime Response 406: Device Offline or Not Sending Status Reports when Configured with Device Provisioning Service (DPS)

28711978 0 Reputation points
2023-05-24T06:20:19.92+00:00

I am using a pre-built template to deploy a Linux machine with the IoT Edge runtime as an edge device. Initially, I successfully added the SimulatedTemperatureSensor module and received a response of "200 OK" from the IoT Edge runtime.

However, when I configured it for deployment using the Device Provisioning Service (DPS), I encountered an issue. The IoT Edge runtime now responds with "406 - The device is offline or not sending status reports."

Could you please help me understand why I am receiving this response and how I can resolve it?

Screenshot from 2023-05-24 12-03-55

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.
534 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 28,311 Reputation points MVP
    2023-05-24T20:21:04.1866667+00:00

    Hello @28711978,

    it seems the config.toml file on your edge device is not configured correctly for DPS usage.

    Please first roll back to the version where you used the test connection string.

    Once you can confirm it runs as expected, modify the config.toml file again.

    If you use DPS with a symmetric key, your configuration will look like this:

    [provisioning]
    source = "dps"
    global_endpoint = "https://global.azure-devices-provisioning.net"
    id_scope = "<DPS-ID-SCOPE>"
    [provisioning.attestation]
    method = "symmetric_key"
    registration_id = "<my-device-registration-id>"
    symmetric_key = { value = "<Device symmetric key>" } # inline key (base64)
    

    Check the documentation for more variations like provisioning with X.509 certificates or provisioning with TPM.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.