Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
hiddentrue

Imports scalar data from iot devices connected to the Azure IOT Hub: https://azure.microsoft.com/en-us/services/iot-hub/

Overview

Available since 2020.01.

The AzureIotHub Import connects to the built-in endpoint of the Azure IOT Hub. By default the IOT Hub exposes the endpoint as an Azure Service Bus compatible endpoint. This allows clients to connect using the AMQPS protocol, which is used by the AzureIotHub import. The default port for AMQPS is port 5671 and a forecasting shell server should be allowed to connect to the Azure IOT Hub using this port from the Forecasting Shell Server.

The AzureIotHub import is a long running import that will keep running for one hour and will keep listening voor messages to arrive. After one hour the import will finish and state is store to keep track of the messages that have been imported. Since the import is completed after one hour, imports should be scheduled hourly and the import should never run in parallel on multiple Forecasting Shell Servers.

Warning

The current implementation only supports PI XML as content format.


Import Configuration

General Section

...

  • importType

...

  • AzureIotHub

...

  • serverUrl: a valid URL is required, but is used for informational purposes only and will be displayed in the import status. It can be set to the event hub domain url, for example: https://delft-fews-iot-hub.azure-devices.net

...

  • dataFeedId

...

  • : required

...

  • and

...

  • can

...

  • be

...

  • set

...

  • to

...

  • any

...

  • unique

...

  • dataFeedId.

...

  • For

...

  • example:

...

  • Delft-FEWS

...

  • Azure

...

  • IOT

...

  • Hub

Properties

To configure the AzureIotHub import, some required properties have to be specified:

Property nameDescriptionExample valueAzure Portal Screenshot
eventHubCompatiblePath
consumersGroup

iothub-ehub-delft-fews-3109254-e665c23b62
$Default
AzureIotHub-Built-inendpoint
eventHubCompatibleHostname

ihsuprodamres086dednamespace.servicebus.windows.net
AzureIotHub-Built-inendpoint
numberOfPartitions

2AzureIotHub-Built-inendpoint
sharedAccessPolicyName

serviceAzureIotHub-SharedAccessPolicies
sharedAccessPolicyKey

V86dqC3AhjIqSgvAuShKDSsNamUJh5rJrqZ1e3hw7EA=
AzureIotHub-SharedAccessPolicies
runningTimeMilliseconds
Optional property. Specifies how long the import will run in milliseconds. Default is one hour. Should only be changed for testing.
120000
not relevant

...


Example Import Configuration

...