Iot Edge variables per device (Proxy Setting)

FRANK VANDEBERGH 0 Reputation points
2025-02-04T09:22:21.32+00:00

We have various Iot Edge devices located at different places.

For some devices, we need to use a proxy server for connection with Iot Hub and other resources, for other devices we don't.

Currently, the proxy settings need to be defined on the device but also in the deployment manifest. This is an issue because this means you need a different deployment manifest for each unique device/proxy setting configuration just for these two variables.

Because of this we lose the ability to centrally manage deployments in a staged phases as we need unique deployments for such devices. Is there a way to specify that the proxy variables for the edgeAgent and edgeHub modules should be read from the device settings only, and not coming from the deployment manifest?

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

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 34,851 Reputation points MVP
    2025-02-04T10:50:34.1033333+00:00

    Hello @FRANK VANDEBERGH ,

    welcome to this moderated Azure community forum.

    The Azure IoT Edge configuration is very specific regarding the configuration.

    As far as I know, this is done via the deployment manifest only?

    Have you checked layered deployments?

    If you mark your devices with a custom tag like 'useProxySettings=true' you can activate or deactivate a layer in your layered deployments using this tag as a 'target condition', including modules and module settings, at scale.

    Normally the edgeHub and edgeAgent are put in the 'baseline' deployment but perhaps you can work around this baseline layer.

    Another alternative I have seen is deploying deployment manifest via Azure DEvops pipelines at scale.


    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.


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.