How do you delete an IoT Device Telemetry Data programmitcally with CSharp in Azure IoT Central or Azure IoT Hub? - azure-iot-hub

I am trying to programmatically delete telemetry data in Azure IoT Central/IoT Hub using CSharp. Is there any api's to do this without deleting the devices?

The device telemetry data are ingested into the underlying streaming resource such as the Event Hubs and they are stayed there based on the retention policy, see more details here.
Note, that the events can't be deleted explicitly from the Event Hubs and the shortest possible retention period is 1 day.

Related

Azure IOT Asset inventory track

We have a requirement to track the physical assets like printer,laptops (part of inventory list) for all users in our organization in real time. In recent times,there are cases of missing laptops and theft and since we don't have a database to track, we don't have information on who is owning which laptop. We would like to have a proper governance in place to achieve this. Can we use an Azure IOT workflow in conjunction with Azure cognitive analytics capabilities/Azure eventHub to get some real time data and any reference architectures which can guide to implement this complete project.
-Hema
Yes, you can use Azure IoT for tracking and managing Asset inventory.
As Deep mentioned on above comment, you can use Device management with IoT Central.
Azure IoT Central is a solution development platform that simplifies IoT device connectivity, configuration, and management. The platform significantly reduces the burden and costs of IoT device management, operations, and related developments. Customers and partners can build an end-to-end enterprise solutions to achieve a digital feedback loop in inventory management.
The benefits of smart inventory management include:
Reducing the risk of items being out of stock and ensuring the desired customer service level.
In-depth analysis and insights into inventory accuracy in near real time.
Tools to help decide on the right amount of inventory to hold to meet customer orders.
This application template focuses on device connectivity, and the configuration and management of RFID and Bluetooth low energy (BLE) reader devices.
Please see Deploy and walk through the smart inventory management application template for more details.

IOT Central Hub Gauges

I want to make a gauge for temperature on the template/dashboard. Does anyone know if you can do gauges (Not pie chart) in iot central?
Thanks in advance!
Azure IoT Central does not support custom tiles. These are the only supported tiles.
https://learn.microsoft.com/en-us/azure/iot-central/core/howto-add-tiles-to-your-dashboard#tile-types
If you want to do custom projects, look at Azure IoT Solution Accelerators https://azure.microsoft.com/en-us/features/iot-accelerators/

Azure IoT hub: How to get data for the device for last n days

Consider my devices are reporting a sensor data to iot hub every 30 seconds.
From my backend node.js server(Which is hosted on AWS) I want to get sensor data such that I can show to my users - current data, today's max, today's min, and weeks data's chart. I am able to get only current sensor data using the device twin. How can get data for last n days?
For n maximum 7 days, see Visual real-time sensor data from Azure IoT Hub using Power BI, where the Stream Analytics Job can be started by your custom datetime.
or you can use the full solution for long-term storage: Azure Time Series Insights.

Combining messages from multiple devices

Is there a recommended way in the Azure ecosystem to join the JSON messages sent by two or more separate devices at approximately the same time in order to run them through, for example, an Azure ML webservice.
The goal of this would be running a real time analysis with data coming from multiple devices.
Thank you
Edit :
Perhaps I should have phrased my question better, but I am currently using Azure Stream Analytics in order to capture the data sent from a device to Azure ML, which works fine (from learn.microsoft.com/en-us/azure/iot-hub/…). Now I want to do the same thing but with multiple devices that each send part of the information that Azure ML needs.
I think what you are looking for is Azure Stream Analytics which allows you to work on windows of time.
This article shows how to integrate ASA with Machine Learning.
And you can easily set the input of an ASA job to an IoT Hub.

Stream analytics small rules on high amount of device data

We have the following situation.
We have multiple devices sending data to an event hub (Interval is
one second)
We have a lot of small stream analytics rules for alarm
checks. The rules are applied to a small subset of the devices.
Example:
10000 Devices sending data every second.
Rules for roughly 10 devices.
Our problem:
Each stream analytics query processes all of the input data, although the job has to process only a small subset of the data. Each query filters on device id and filters out the most amount of data. Thus we need a huge number of streaming units which lead to high stream analytics cost.
Our first idea was to create an event hub for each query. However, here we have the problem that each event hub has at least one throughput unit, which leads also to high costs.
What is the best solution in our case?
One possible solution would be to use IoT hub and to create a different Endpoint with a specific Route for the devices you want to monitor.
Have a look to this blog post to see if this will work for your particular scenario: https://azure.microsoft.com/en-us/blog/azure-iot-hub-message-routing-enhances-device-telemetry-and-optimizes-iot-infrastructure-resources/
Then in Azure Stream Analytics, you can use this specific Endpoint as input.
Thanks,
JS (Azure Stream Analytics team)