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.