Guide · Microsoft Fabric via MQTT

Step by step: connect pronubes Edge to Microsoft Fabric via MQTT

From the machine value to the Eventhouse table.

This guide shows how pronubes Edge sends machine data as JSON messages to an MQTT broker, how Microsoft Fabric subscribes to the topic through an Eventstream and how the data lands in an Eventhouse table. The example uses a simulated filling machine whose values are read via OPC UA.

Data flow
OPC UA server→pronubes Edge→MQTT broker→Fabric Eventstream→Eventhouse table
What you need
  • A running pronubes Edge instance with access to the machine data, OPC UA in this example
  • An MQTT broker, such as HiveMQ Cloud, EMQX or a self-hosted Mosquitto
  • A Microsoft Fabric account with an active Fabric capacity or trial
  • Network connectivity from pronubes Edge to the broker and from Fabric to the broker
Part 1

Configure pronubes Edge

In pronubes Edge you connect the data source, set up the connection to the MQTT broker and build the flow that publishes the JSON message.

1

Configure the OPC UA plugin

  1. Open the pronubes Edge configuration.
  2. Add an OPC UA plugin and configure the server endpoint, authentication and security settings.
  3. Test the connection to the OPC UA server.
  4. Identify the machine values to send.

In the example, pronubes Edge reads State, ProducedCount, ScrapCount, Temperature and Pressure from a simulated filling machine.

2

Configure the MQTT plugin

  1. Add an MQTT plugin.
  2. Enter the broker address and credentials.
  3. Configure the MQTT version and TLS.
  4. Save the plugin and verify the broker connection with Check connection.
SettingValue in the example
BrokerHiveMQ Cloud
MQTT versionMQTT 5.0
Port8883, TLS/SSL enabled
AuthenticationUsername and password
Quality of Service0 – at most once

Note: Use the credentials and security settings of your own broker.

Creating a new MQTT plugin in pronubes Edge
Creating a new MQTT plugin in pronubes Edge
Connection settings: broker, port, MQTT version, authentication and TLS
Connection settings: broker, port, MQTT version, authentication and TLS
3

Create the flow

  1. Create a new flow in pronubes Edge.
  2. Add an OPC UA transfer object containing the required machine values.
  3. Add a Variables transfer object to provide the system time (SystemTime).
  4. Add a JSON Write transfer object to build a structured JSON message.
  5. Connect the OPC UA values and the system time to the corresponding JSON fields.
  6. Add an MQTT Publish transfer object and set the topic to ProcessValues.
  7. Connect the JSON output to the Payload input.
  8. Set the flow live with Go Productive.

The JSON message contains MachineID, MachineState, ProducedCount, ScrapCount, Temperature, Pressure and Timestamp.

The complete flow: OPC UA, Variables, JSON Write and MQTT Publish
The complete flow: OPC UA, Variables, JSON Write and MQTT Publish
Part 2

Configure Microsoft Fabric

In Fabric you create a workspace, an Eventhouse and an Eventstream. The Eventstream subscribes to the MQTT topic and writes the messages to a table.

4

Create a Fabric account and workspace

  1. Open app.fabric.microsoft.com.
  2. Sign in with a Microsoft work or school account. If you do not have one, follow Microsoft’s account onboarding process.
  3. If eligible, activate a Fabric trial from the profile menu, or use an existing Fabric capacity.
  4. Select Workspaces → New workspace.
  5. Enter a name, for example PlantDataWorkspace.
  6. Assign the workspace to the trial or your capacity and create it.

Good to know: The workspace is where you create and manage Eventstreams, Eventhouses and other Fabric items.

Signing in to Microsoft Fabric
Signing in to Microsoft Fabric
5

Create an Eventhouse

  1. Open the workspace.
  2. Select New item → Eventhouse.
  3. Enter a name, for example PlantDataEventhouse.
  4. Select Create.

Fabric automatically creates a KQL database inside the Eventhouse. It will hold the table for the machine data.

New item → Eventhouse
New item → Eventhouse
The new Eventhouse with its KQL database
The new Eventhouse with its KQL database
6

Create an Eventstream

  1. Return to the workspace.
  2. Select New item → Eventstream.
  3. Enter a name, for example PlantDataMQTTStream.
  4. Select Create.

An Eventstream receives incoming events and routes them to a configured destination.

New item → Eventstream
New item → Eventstream
The empty Eventstream
The empty Eventstream
7

Add the MQTT source

  1. Open the Eventstream editor.
  2. Select Add source → Connect data sources → MQTT.
  3. Select New connection.
  4. Enter the details of your MQTT broker (see table).
  5. Select Connect, complete the source configuration and select Add.
  6. Select Publish to apply the Eventstream changes.
SettingExample
MQTT Broker URLssl://:8883
AuthenticationBroker username and password
Topic nameProcessValues
VersionV5
Source nameMachineDataMQTT

Important: Topic and MQTT version must match the pronubes Edge configuration exactly. The broker must be reachable from Fabric.

Add source: select MQTT
Add source: select MQTT
Connection settings of the MQTT source
Connection settings of the MQTT source
Creating a new connection to the broker
Creating a new connection to the broker
Setting the topic and MQTT version
Setting the topic and MQTT version
Review before adding the source
Review before adding the source
The published MQTT source in the Eventstream
The published MQTT source in the Eventstream
8

Configure the Eventhouse destination

  1. Open the Eventstream in Edit mode.
  2. Select Add destination → Eventhouse.
  3. Choose Direct ingestion for this example.
  4. Select the workspace and the previously created PlantDataEventhouse.
  5. Save the destination, make sure it is connected to the Eventstream, and select Publish.
  6. Switch to Live view and select Configure on the Eventhouse destination.
  7. In the wizard, select the KQL database and choose New table.
  8. Name the table MachineData.
  9. Inspect the incoming data, select the JSON format and verify the column mappings and data types.
  10. Select Finish to complete the setup.

The Eventstream now receives messages from the MQTT broker and stores them in the Eventhouse table.

Add destination: Eventhouse
Add destination: Eventhouse
Direct ingestion, workspace and Eventhouse
Direct ingestion, workspace and Eventhouse
Source, stream and destination are connected
Source, stream and destination are connected
Live view: configure the destination
Live view: configure the destination
Creating a new table
Creating a new table
Table MachineData and data connection
Table MachineData and data connection
Inspecting the data: JSON format and columns
Inspecting the data: JSON format and columns
Summary: table, mapping and data connection created
Summary: table, mapping and data connection created
Part 3

Verify the data transfer

Finally, you check that the data arrives along the whole route.

9

Check the data in pronubes Edge and Fabric

  1. Activate or run the flow in pronubes Edge.
  2. Check in pronubes Edge monitoring that messages are successfully sent to the broker.
  3. Open the Eventstream in Fabric and confirm that events appear in the data preview.
  4. Open the Eventhouse and select the MachineData table.

If records appear with the expected machine values and timestamps, the integration is working.

pronubes Edge monitoring: transfer successful
pronubes Edge monitoring: transfer successful
The machine data in the MachineData table
The machine data in the MachineData table

Good to know

Notes and limitations

MQTT broker requiredThe broker is hosted or provisioned separately. A cloud-hosted broker simplifies the initial setup.
ReachabilityFabric must be able to reach the broker. A publicly reachable broker is the simplest setup; protected networks need additional network settings in Fabric.
SecurityUse TLS and broker authentication. Do not expose unprotected production machine connections to the internet.
The flow must runMake sure the flow in pronubes Edge is actually running and that its trigger or schedule is correct.
Fabric requirementsYou need an active Fabric capacity or trial. Fabric interfaces and features may change.
Need support?

We help with the setup

You want to bring your machine data into Microsoft Fabric and have questions about your system landscape? Get in touch.

Troubleshooting

Common issues

No data arrives in the Eventstream

Check that the flow in pronubes Edge is live and successfully sends messages to the broker. Then compare topic and MQTT version in pronubes Edge and in the MQTT source of the Eventstream. Both must match exactly.

Fabric cannot connect to the broker

Fabric must be able to reach the broker. Check the broker URL with protocol and port, for example ssl://<broker-host>:8883, as well as username and password. A broker in a protected network needs additional network settings in Fabric.

The table stays empty although the Eventstream shows data

Check that the Eventhouse destination is connected and published and that you completed the wizard with “Finish”. With direct ingestion, this step is required after publishing.

Columns or data types do not match

In the wizard, select the JSON format and verify column mappings and data types against the sample data before you finish.