About Sending Data to Azure IoT Hub

You can store data from the Historian server in one of the following locations:
  • On-Premises: Uses an on-premises Historian server to store the data.
  • Cloud: Uses Predix Time Series Cloud or Azure IoT Hub to store the data.
To send data to Azure IoT Hub, the Server-to-Server collector is used (with the destination set to Azure IoT Hub).
Note: A single instance of the Server-to-Server collector can be used only one of the following purposes:
  • Sending data to a Historian on-premises server
  • Sending data to Predix Cloud
  • Sending data to Azure IoT Hub
The following conditions apply when you send data to Azure IoT Hub:
  • Only data from the Server-to-Server collector, which is stored in the Historian server, is sent to Azure IoT Hub.
  • Data in Azure IoT Hub is stored for maximum seven days, after which it is deleted from the hub. Therefore, you must consume the data within seven days. Based on your requirement, you can store it in a relevant Azure storage. You can then use Azure functions or streaming analytics to analyse the data.
  • The data sent to Azure IoT Hub is in the JSON format with UTF-8 encoding. To reduce the message size and avoid repetition of tag properties, the tag values are in the format of the KairosDB data points: [{"<tag name>":"Cloud_GCYSS3X2E.Simulation00001","<time stamp, tag value, and quality>":[[1586260104000,132560.203125000,3]]}
To use Azure IoT Hub, you must perform the following steps.
Step Number Description Notes
1 Set up an Azure IoT Hub account. This step is required.
Note: To choose the correct Azure IoT Hub based on your requirement, refer to https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-quotas-throttling
2 Create devices in Azure IoT Hub. This step is required. These devices store the data received from a collector. We recommend that you create one device per collector.
3 Install and configure the Server-To-Server collector to send data to Azure IoT Hub. This step is required.
Note: Even if you have already installed the Server-to-Server collector, you must install it again. In this instance, the destination will be set to Azure IoT Hub.