Hello @SaurabhShuklaUS-9711,
The quickstart you posted is for generically setting up Azure IoT Edge for Linux on a Windows device (EFLOW). Have you been able to successfully deploy the Simulated Temperature Sensor module and to receive its data?
There is another guide, specifically for OPC Publisher module tutorial-publisher-deploy-opc-publisher-standalone
Your Container Create Options for OPC Publisher seems to be the cause as you mix Linux and Windows container create options.
...
"Binds": [
"c://iiotedge:/appdata"
],
...
EFLOW is based on CBL Mariner Linux, therefore it uses Linux containers and runs in a Linux VM on Windows. It is not possible to directly bind a folder from the host OS (Windows) into the container environment running in the Linux VM. The bind mount should be for a Linux directory within the EFLOW environment, e.g., /srv/opcpublisher
what will be created if it does not exist by IoT Edge and bound to OPC Publishers /appdata
working directory in the container.
You can try the following Container Create Options and add your specific command line arguments after the module has started successfully.
{
"Hostname": "opcpublisher",
"Cmd": [
"--pf=./pn.json",
"--aa"
],
"HostConfig": {
"Binds": [
"/srv/opcpublisher:/appdata"
]
}
}
----------
If your issue is solved, please mark the best answer, and feel free to upvote to help others with a similar issue finding a solution.