Guide · Microsoft Fabric via Kafka

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

From the machine value to the Eventhouse table, without a broker of your own.

This guide shows how to create a Kafka-compatible endpoint in Microsoft Fabric, how pronubes Edge sends machine data to it as JSON messages 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→Fabric Eventstream (Kafka endpoint)→Eventhouse table
What you need
  • A running pronubes Edge instance with access to the machine data, OPC UA in this example
  • The Kafka plugin in pronubes Edge
  • A Microsoft Fabric account with an active Fabric capacity or trial and permission to create Eventstreams and Eventhouses
  • Network connectivity from pronubes Edge to the Fabric Kafka endpoint
Part 1

Configure Microsoft Fabric

First, you create the workspace, the Eventhouse and the Eventstream with its Kafka endpoint in Fabric. You need the connection details from it in pronubes Edge afterwards.

1

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
2

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
3

Create an Eventstream

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

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

New item → Eventstream
New item → Eventstream
Naming the Eventstream
Naming the Eventstream
4

Add a custom endpoint source

  1. Open the Eventstream editor.
  2. Select Add source → Custom endpoint, or Use custom endpoint if the Eventstream is empty.
  3. Enter a source name, for example MachineDataKafka.
  4. Select Add.
  5. Select Publish to apply the changes.
  6. Wait a few minutes until Fabric has created the Kafka endpoint.
  7. Switch to Live view and select the custom endpoint source.
  8. Open the Kafka tab in the Details pane.
  9. Select SAS Key Authentication.

Fabric now shows the Kafka connection details. Copy these values:

SettingDescription
Bootstrap serverKafka-compatible server address provided by Fabric
Topic nameTopic name assigned automatically by Fabric
Connection string-primary keyConnection string used for authentication
Security protocolSASL_SSL
SASL mechanismPLAIN

Important: Fabric generates the topic name automatically. Use exactly the value shown, not a name of your own such as ProcessValues. Treat the connection string like a password.

Add source → Custom endpoint
Add source → Custom endpoint
Entering the source name
Entering the source name
Live view: Kafka connection details under SAS Key Authentication
Live view: Kafka connection details under SAS Key Authentication
5

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 is now ready to receive Kafka messages and store them in the Eventhouse table.

Add destination: Eventhouse
Add destination: Eventhouse
Direct ingestion, workspace and Eventhouse
Direct ingestion, workspace and Eventhouse
Part 2

Configure pronubes Edge

In pronubes Edge you connect the data source, enter the Kafka connection details from Fabric and build the flow that sends the JSON message.

6

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.

7

Configure the Kafka plugin

  1. Add the Apache Kafka plugin in pronubes Edge.
  2. Enter the bootstrap server from Fabric.
  3. Configure authentication and security (see table).
  4. Save the configuration and verify the connection to the Fabric Kafka endpoint with Check connection.
Field in pronubes EdgeValue
Broker access dataBootstrap server from Fabric, including port
SSLenabled
User$ConnectionString
PasswordConnection string-primary key from Fabric
SASL MechanismPlain
Message formatJSON (UTF-8)

Important: The username is literally $ConnectionString. As the password, enter the complete connection string from Fabric, not just the shared access key. Field names may differ slightly depending on the Kafka plugin version.

The Kafka plugin in pronubes Edge with the connection details from Fabric
The Kafka plugin in pronubes Edge with the connection details from Fabric
8

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 the Apache Kafka transfer object and enter the topic name from Fabric as the topic.
  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. It is identical to the message on the MQTT route; only the sending building block and its connection differ.

The complete flow: OPC UA, Variables, JSON Write and Apache Kafka
The complete flow: OPC UA, Variables, JSON Write and Apache Kafka
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 Fabric Kafka endpoint.
  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

No Kafka broker requiredFabric provides the Kafka-compatible endpoint. A Kafka installation of your own or a managed Kafka service is not necessary.
Kafka-compatible, not a Kafka clusterFabric offers a Kafka-compatible endpoint, not a full Apache Kafka cluster. Do not assume Kafka administration or broker management features.
Protect credentialsThe connection uses SASL_SSL with PLAIN and the Fabric connection string. Store credentials securely.
Networkpronubes Edge must be able to open an outbound TLS connection to the Fabric Kafka endpoint.
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 and permissions for the custom endpoint and Eventhouse. Fabric interfaces 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

pronubes Edge cannot connect to Fabric

Check the bootstrap server including port, SSL and the SASL mechanism Plain. The username is literally $ConnectionString, the password is the complete connection string, not just the key. pronubes Edge also needs an outbound TLS connection to the endpoint.

No data arrives in the Eventstream

Check that the flow is live. The Kafka building block must use exactly the topic name from Fabric, not a name of your own.

The Kafka connection details are not shown

Publish the Eventstream after adding the custom endpoint and wait a few minutes. The details appear in Live view on the Kafka tab under SAS Key Authentication.

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.