how to sink data to storage in one file ?

Ahmed Assad 266 Reputation points
2021-02-09T08:35:56.147+00:00

i am use azure iot hub service sdk to authT ESP 8266 device with azure iot hub and then route data to blob storage ,
after it sink data from device to storage ... i found all data divided by folder based on data and time as it described in image 65723-image.png

what is the solution of this problem, to sink continuous telemetries in the same file ?
or what iis the right option to select storage type ?

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
401 questions
Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
231 questions
Azure IoT Plug and Play
Azure IoT Plug and Play
A Microsoft technology based on an open modeling language that enables developers to connect internet of things (IoT) devices to the cloud without having to write any code.
18 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,203 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
223 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 34,861 Reputation points
    2021-02-15T16:46:43.167+00:00

    @AhmedAssad-8581 Sorry for the delay in response. As mentioned earlier, The default file name format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. The format must contain {iothub}, {partition}, {YYYY}, {MM}, {DD}, {HH}, and {mm} in any order.

    As an alternative, to customize the filename format, you can write an Azure Function which triggers for new IoT hub messages and store the data in an Azure Blob Storage Container.

    I would suggest you go through the documentation on How to use Azure Functions with IoT Hub message routing and Azure IoT Hub bindings for Azure Functions for more details. Please let us know if you need further help or any queries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.