Edit

Configure data flow endpoints for Microsoft Fabric Real-Time Intelligence

To send data to Microsoft Fabric Real-Time Intelligence from Azure IoT Operations, you can configure a data flow endpoint. With this configuration, you can specify the destination endpoint, authentication method, topic, and other settings.

Prerequisites

  • The Azure CLI version 2.62.0 or newer installed on your development machine. Use az --version to check your version and az upgrade to update if necessary. For more information, see Install the Azure CLI.

  • The Azure IoT Operations extension for the Azure CLI. Use the following command to add the extension or update it to the latest version:

    az extension add --upgrade --name azure-iot-ops
    

Note

An eventstream supports multiple input sources, which includes Azure Event Hubs. If you have an existing data flow to Event Hubs, you can bring that data flow into Fabric as shown in the quickstart: Get insights from your processed data. This article shows you how to flow real-time data directly into Fabric without any other hops in between.

Retrieve custom endpoint connection details

Retrieve the Kafka-compatible connection details for the custom endpoint. The connection details are used to configure the data flow endpoint in Azure IoT Operations.

This method uses a managed identity to authenticate with the eventstream. Use either system-assigned managed identity or user-assigned managed identity when you configure the data flow endpoint.

  1. Go to the connection details in the Fabric portal under the Sources section of your eventstream.

  2. In the Details pane for the custom endpoint, select the Kafka protocol.

  3. Select the Entra ID Authentication section to view the connection details.

  4. Copy the details for the Bootstrap server and Topic name values. You use these values to configure the data flow endpoint.

    Screenshot that shows Fabric with custom endpoint connection details.

    Settings Description
    Bootstrap server The bootstrap server address is used for the host name property in the data flow endpoint.
    Topic name The event hub name is used as the Kafka topic and is in the format es_aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb.

Create a Fabric Real-Time Intelligence data flow endpoint

  1. In the Azure IoT Operations experience portal, select the Data flow endpoints tab.

  2. Under Create new data flow endpoint, select Microsoft Fabric Real-Time Intelligence > New.

  3. Enter the following settings for the endpoint.

    Screenshot that shows creating a new Real-Time Intelligence data flow endpoint.

    Setting Description
    Name The name of the data flow endpoint.
    Host The host name of the eventstream custom endpoint in the format <bootstrap-server>.servicebus.windows.net:9093. Use the bootstrap server address noted previously.
    Authentication method The method used for authentication. Choose System-assigned managed identity, User-assigned managed identity, or SASL.

    Use the authentication method that matches how you want Azure IoT Operations to connect to the custom endpoint of the Fabric eventstream:

    • System-assigned managed identity: Use the Azure IoT Operations Azure Arc extension identity to authenticate with the eventstream. Before you create the endpoint, add the extension identity to the Fabric workspace with permissions of Contributor or higher. To learn more, see System-assigned managed identity.
    • User-assigned managed identity: Use a user-assigned managed identity configured for Azure IoT Operations cloud connections. Before you create the endpoint, add the user-assigned managed identity to the Fabric workspace with permissions of Contributor or higher. To learn more, see User-assigned managed identity.
    • SASL: Use the custom endpoint connection string of the Fabric eventstream. This method requires Simple Authentication and Security Layer (SASL) settings and a synced Kubernetes secret with the username and password values. To learn more, see SASL.
  4. Select Apply to provision the endpoint.

Available authentication methods

The following authentication methods are available for Real-Time Intelligence data flow endpoints.

System-assigned managed identity

Before you configure the data flow endpoint, give the Azure IoT Operations managed identity access to the Fabric workspace that contains your eventstream. Custom endpoints for the Fabric eventstream authorize managed identities through Fabric workspace access, not through the Azure portal identity and access management (IAM) on an Azure resource.

  1. In the Azure portal, go to your Azure IoT Operations instance and select Overview.
  2. Copy the name of the extension listed after Azure IoT Operations Arc extension. For example, copy azure-iot-operations-xxxx7.
  3. In Fabric, go to the workspace that contains your eventstream.
  4. Select Manage access > Add people or groups.
  5. Search for the Azure IoT Operations Azure Arc extension identity that you copied. An example is azure-iot-operations-xxxx7.
  6. Assign workspace permission of Contributor or higher to the identity.

For more information, see Assign Fabric workspace permissions.

Configure the data flow endpoint with system-assigned managed identity settings.

On the operations experience tab for the data flow endpoint settings page, select the Basic tab, and then select Authentication method > System-assigned managed identity.

User-assigned managed identity

To use user-assigned managed identity for authentication, you must first deploy Azure IoT Operations with secure settings enabled. Then you need to set up a user-assigned managed identity for cloud connections. To learn more, see Enable secure settings in Azure IoT Operations deployment.

Before you configure the data flow endpoint, give the user-assigned managed identity access to the Fabric workspace that contains your eventstream. Custom endpoints for the Fabric eventstream authorize managed identities through Fabric workspace access, not through the Azure portal IAM on an Azure resource.

  1. In Fabric, go to the workspace that contains your eventstream.
  2. Select Manage access > Add people or groups.
  3. Search for your user-assigned managed identity.
  4. Assign workspace permission of Contributor or higher to the identity.

For more information, see Assign Fabric workspace permissions.

Configure the data flow endpoint with user-assigned managed identity settings.

On the operations experience tab for the data flow endpoint settings page, select the Basic tab, and then select Authentication method > User-assigned managed identity.

SASL

To use SASL for authentication, specify the SASL authentication method and configure the SASL type and a secret reference with the name of the secret that contains the SASL credentials.

We recommend that you use Azure Key Vault to sync the connection string to the Kubernetes cluster so that the data flow can reference it. Secure settings must be enabled to configure this endpoint by using the operations experience web UI.

  1. On the operations experience tab for the data flow endpoint settings page, select the Basic tab, and then select Authentication method > SASL.

  2. Enter the following settings for the endpoint:

    Setting Description
    SASL type The type of SASL authentication to use. For Fabric custom endpoints, select Plain.
    Synced secret name Enter a name for the synced secret. A Kubernetes secret with this name is created on the cluster.
    Username reference of token secret The reference to the username or token secret used for SASL authentication.
    Password reference of token secret The reference to the password or token secret used for SASL authentication.
  3. Select Add reference to create a new Key Vault reference or choose an existing Key Vault reference for the username and password references:

    • Username reference of token secret: A Key Vault secret whose value is the literal string $ConnectionString (including the leading $).

      Screenshot that shows creating a username reference in Azure Key Vault.

    • Password reference of token secret: The secret value must be the connection string with the primary key from the custom endpoint of the eventstream.

      Screenshot that shows creating a password reference in Azure Key Vault.

Supported SASL types:

  • Plain
  • ScramSha256
  • ScramSha512

The secret must be in the same namespace as the Kafka data flow endpoint. The secret must have both the username and password as key/value pairs.

Advanced settings

The advanced settings for this endpoint are identical to the advanced settings for Event Hubs endpoints.

Next step