Share via

Device Update Compatibility Problem (not matching)

Francisco Pellerano EXT 0 Reputation points
2025-09-22T06:38:47.26+00:00

Im currently testing the Device Update service, i already have the service runing with the corect permissions. In a first try i was able to import my update with the manifest and script from my blob storage:

Manifest

{
  "compatibility": [
    {
      "manufacturer": "cdm3b",
      "model": "pos-terminal"
    }
  ],
  "createdDateTime": "2025-09-21T19:00:00Z",
  "files": [
    {
      "filename": "installpackage.sh",
      "hashes": {
        "sha256": "gukfB0Jwch8jQ0O0OIvTMvdWI0YI1A7FwB4T1Nzi4Po="
      },
      "sizeInBytes": 10129
    }
  ],
  "instructions": {
    "steps": [
      {
        "files": [
          "installpackage.sh"
        ],
        "handler": "microsoft/script:1",
        "handlerProperties": {
          "installedCriteria": "1.0.2",
          "scriptFileName": "installpackage.sh"
        },
        "type": "inline"
      }
    ]
  },
  "manifestVersion": "5.0",
  "updateId": {
    "name": "hello-test",
    "provider": "cdm3b",
    "version": "1.0.2"
  }
}

du-config.json

{
  "schemaVersion": "1.1",
  "aduShellTrustedUsers": ["adu", "do"],
  "iotHubProtocol": "mqtt",
  "compatPropertyNames": "manufacturer,model",
  "manufacturer": "cdm3b",
  "model": "pos-terminal",
  "agents": [
    {
      "name": "main",
      "runas": "adu",
      "connectionSource": {
        "connectionType": "AIS",
        "connectionData": ""
      },
      "manufacturer": "cdm3b",
      "model": "pos-terminal"
    }
  ]
}

In my first try i get the deploy to work with a test device. I deletes the device, i delete the import, create a new device, install the device update agent, conected and try again and now for my surprise i cant create a deploy, for some reason the DU consider that my device is not compatible and i dont understand why.

User's image

module twin device

{
    "etag": "AAAAAAAAAAI=",
    "deviceId": "cmdb3-1245",
    "deviceEtag": "MjM4MTkyNTE0",
    "moduleId": "IoTHubDeviceUpdate",
    "version": 9,
    "tags": {
        "ADUGroup": "pos-terminals"
    },
    "properties": {
        "desired": {
            "$metadata": {
                "$lastUpdated": "0001-01-01T00:00:00.0000000Z"
            },
            "$version": 1
        },
        "reported": {
            "$metadata": {
                "$lastUpdated": "2025-09-22T05:45:31.0158430Z",
                "deviceInformation": {
                    "$lastUpdated": "2025-09-22T05:45:31.0158430Z",
                    "__t": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "manufacturer": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "model": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "osName": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "processorArchitecture": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "processorManufacturer": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "swVersion": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "totalMemory": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "totalStorage": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    }
                },
                "deviceUpdate": {
                    "$lastUpdated": "2025-09-22T05:45:31.0158430Z",
                    "__t": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                    },
                    "agent": {
                        "$lastUpdated": "2025-09-22T05:45:31.0158430Z",
                        "compatPropertyNames": {
                            "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                        },
                        "deviceProperties": {
                            "$lastUpdated": "2025-09-22T05:45:31.0158430Z",
                            "aduVer": {
                                "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                            },
                            "contractModelId": {
                                "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                            },
                            "manufacturer": {
                                "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                            },
                            "model": {
                                "$lastUpdated": "2025-09-22T05:45:31.0158430Z"
                            }
                        }
                    }
                }
            },
            "$version": 7,
            "deviceInformation": {
                "__t": "c",
                "manufacturer": "cdm3b",
                "model": "pos-terminal",
                "osName": "Ubuntu",
                "processorArchitecture": "x86_64",
                "processorManufacturer": "GenuineIntel",
                "swVersion": "24.04.3 LTS (Noble Numbat)",
                "totalMemory": 4010512,
                "totalStorage": 25623780
            },
            "deviceUpdate": {
                "__t": "c",
                "agent": {
                    "compatPropertyNames": "manufacturer,model",
                    "deviceProperties": {
                        "aduVer": "Gen1DU;agent/1.2.0",
                        "contractModelId": "dtmi:azure:iot:deviceUpdateContractModel;3",
                        "manufacturer": "cdm3b",
                        "model": "pos-terminal"
                    }
                }
            }
        }
    },
    "modelId": "dtmi:azure:iot:deviceUpdateModel;3",
    "status": "enabled",
    "statusUpdateTime": "0001-01-01T00:00:00.0000000Z",
    "lastActivityTime": "0001-01-01T00:00:00.0000000Z",
    "connectionState": "Connected",
    "cloudToDeviceMessageCount": 0,
    "authenticationType": "sas"
}

i keep looping through this files to check what could we wrong, but i just not find a clue of the problem.

Azure Internet of Things

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.