How to specify a local storage folder on linux iot edge device for blob storage implementation on edge device?

Anurag Shelar 181 Reputation points
2020-12-30T15:18:03.713+00:00

I have a folder onto my edge device wherein some object detection output images are stored.I want them to store onto local iot edge blob storage. And then sync it with cloud blob storage. how do I achieve this?
I have seen the docs which gave the volume mount option but I didn't understand how to specify the exact directory and what is the target and source container

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.
535 questions
Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
230 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,427 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
208 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sander van de Velde 28,386 Reputation points MVP
    2020-12-31T01:44:56.257+00:00

    Hello @Anurag Shelar ,

    Microsoft supports a Blob storage module on Azure IoT edge.

    This module has two main capabilities:

    1. providing an Azure-Blob-storage-account-like API for other modules so files can be stored locally on the edge
    2. files/blobs which are stored locally by the Blob module can be synced with a storage account in the cloud

    An example of using this module is seen here.

    It seems you are looking for a way to send images from a folder to the cloud.

    The Microsoft Blob storage container is not checking folders itself. you need to provide it with the files you want to sync to Azure using that API.

    For this to happen, you should implement a custom 'file system watcher' module.

    0 comments No comments

  2. Vishu Tyagi 1 Reputation point
    2022-11-28T09:05:15.827+00:00

    @Anurag Shelar

    In your deployment manifest use add below in your create Options in edge Hub
    "HostConfig": {
    "Binds": [
    "/etc/aziot/storage/:/storage/"
    ]
    }

    In above example ,your linux machine have a folder "/etc/aziot/storage/ is binded with :/storage/ in docker container.
    Valid in iotedge version >=1.2
    Question is old,adding if some other user is looking for this

    0 comments No comments