azure-iot-hubazure-iot-edgeazure-iot-hub-device-management

IoT Hub Deployment Manifest: Possible to specify module identity tags?


When programatically deploying an Azure IoT Edge solution to IoT hub via a deployment manifest (see here), is it possible to also immediately specify properties (tags) for module twins? like here.


Solution

  • There is no such functionality available in the manifest file. Right now IoT Edge follow below syntax and moduleContent doesn't allow any other properties except properties.desired.

    Anyways you can update after deployment from the module twin.

    {
    "modulesContent": {
        "$edgeAgent": { // required
            "properties.desired": {
                // desired properties of the IoT Edge agent
                // includes the image URIs of all deployed modules
                // includes container registry credentials
            }
        },
        "$edgeHub": { //required
            "properties.desired": {
                // desired properties of the IoT Edge hub
                // includes the routing information between modules, and to IoT Hub
            }
        },
        "module1": { // optional
            "properties.desired": {
                // desired properties of module1
            }
        },
        "module2": { // optional
            "properties.desired": {
                // desired properties of module2
            }
        }
    }
    

    }