Mount a Windows Folder to an Azure IoT Edge Module

maei 21 Reputation points
2021-04-14T11:55:27.373+00:00

Hi, maybe really trivial question, but I am not able to solve it….sorry.

I want to use my windows 10 pc as an "Azure IoT Edge Device" and make use of "Azure IoT Edge Modules" on this to send data from a Node Red Module to Azure IoT Hub to store it there in an Azure Database.

Setup/Installation:
I followed this tutorial (https://learn.microsoft.com/de-de/azure/iot-edge/quickstart?view=iotedge-2018-06). The result is, that I install over Windows Admin Center a Linux VM (include Azure IoT Edge Runtime), which then runs the Azure IoT Edge Modules as Container.

Windows 10 -> Linux VM (IoT Edge Runtime) -> Azure IoT Edge Module (Container).

Question/Use Case:
I use as an Azure IoT Module the Node Red Module (https://github.com/iotblackbelt/noderededgemodule). This works fine and I can access it via <Linux VM IP>:1880.

What can I do to access my .CSV files which are located on my Windows 10 OS in folder C:\Users\u500570\Desktop\Test_IoT? I cannot Bind this Folder to the IoT Edge Module Container, because the Linux VM is the Host of the IoT Azure Edge Module(?).

A Bind like this is not working under "create options" in the deployment manifest:

{  
    "HostConfig":{  
        "Privileged":true,  
        "Binds":[  
            "/C/Users/u500570/Desktop/Test_IoT:/data"  
        ],  
        "PortBindings":{  
            "1880/tcp":[  
                {  
                    "HostPort":"1880"  
                }  
            ]  
        }  
    }  
}  

A Volume mounting like described here (https://stackoverflow.com/questions/52572289/mount-path-to-azure-iot-edge-module) leads to 500 Error and the module is not even starting.

I tried https://learn.microsoft.com/de-de/azure/iot-edge/how-to-access-host-storage-from-module?view=iotedge-2020-11 but I cannot get it runnig.

Is it maybe this: https://learn.microsoft.com/en-us/azure/iot-edge/how-to-access-host-storage-from-module?view=iotedge-2018-06
If so, it would be great if I can get a little example :)

Any help is really much appreciated.

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.
382 questions
{count} votes

Accepted answer
  1. Satish 13,631 Reputation points Microsoft Employee
    2021-05-04T15:15:30.693+00:00

    Hello @maei , Thank you for providing the workaround on this which we discussed offline. For the benefit of the community with a similar issue, we are posting the outcome of this discussion over here.

    This is something that we are investigating and plan to provide, unfortunately, we do not have a timeline for this just yet.
    The suggested workaround is 'Switching to an Ubuntu OS on the edge devices'.

    Please comment in the below section if you have any further questions.

    If the response is helpful, please click "Accept Answer" and upvote it so that others find it useful too.


0 additional answers

Sort by: Most helpful