Hello @Athira Gopinath(UST,IN) ,
welcome to this moderated Azure community forum.
The environment variables are stored in the deployment manifest, sent to the edge device when updated.
Here is an example showing how environment variables are used for Grafana:
"grafana": {
"settings": {
"image": "grafana/grafana:latest-ubuntu",
"createOptions": ""
},
"type": "docker",
"version": "1.0",
"env": {
"GF_INSTALL_PLUGINS": {
"value": "grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"
},
"GF_SECURITY_ADMIN_PASSWORD": {
"value": ""
}
}
As @Manas Mohanty (Quadrant Resource LLC) mentioned already, there are several limitations for the IoT hub device twin and module twins.
I have not found a reference about the maximum size limit of the deployment manifest, the place these variables live in, but the error speaks for itself.
Personally, I would not use an environment variable for providing data of that size, using a volume binding and reading a file in there would have been my approach (or, if this is a custom module a blob storage file can be exchanged via the module twin).
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.