Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure IoT Operations provides two ways to process and route data: data flows and data flow graphs. Both use shared infrastructure, such as endpoints, profiles, and source and destination configuration. However, they differ in pipeline shape and transform capabilities.
What are data flows?
A data flow is a simple, linear pipeline that moves data from a source to a destination with optional transformations. The transformation stage runs three operations in a fixed order: enrich, filter, then map. You configure a data flow by using the operations experience web UI, the Azure CLI, or Azure Resource Manager templates.
Data flows are generally available and support all endpoint types.
What are data flow graphs?
A data flow graph is a composable, graph-based pipeline that connects multiple transforms in any topology you define. You can chain, branch, and merge processing steps. Each transform is a prebuilt processing unit, such as map, filter, branch, window, throttle, or enrichment, that you configure with rules. You configure a data flow graph by using the operations experience web UI, the Azure CLI, or Azure Resource Manager templates.
Data flow graphs support the same source and destination endpoint types as data flows, including table-based destinations such as ADLS Gen2, Microsoft Fabric OneLake, Azure Data Explorer, and local storage.
Comparison
| Feature | Data flows | Data flow graphs |
|---|---|---|
| Pipeline shape | Fixed: enrich, filter, map | Flexible: any graph topology |
| Transforms | Map, filter, enrich | Map, filter, branch, concatenate, window (aggregation), enrich |
| Branch and merge | Not supported | Branch on conditions, merge with concatenate |
| Time-based aggregation | Not supported | Tumbling windows with avg, min, max, count |
| Endpoint support (source) | MQTT, Kafka | MQTT, Kafka |
| Endpoint support (destination) | MQTT, Kafka, ADLS, Fabric, ADX, local storage, OpenTelemetry | MQTT, Kafka, ADLS, Fabric, ADX, local storage, OpenTelemetry |
| Dynamic destination topics | ${inputTopic} (source topic passthrough) |
$metadata.topic + ${outputTopic} (content-based routing) |
| Schema | On source and transformation | On node connections and destination output settings |
| Disk persistence | Supported | Supported |
Shared infrastructure
Data flows and data flow graphs share:
- Endpoints: Both use
DataflowEndpointresources to connect to MQTT brokers, Kafka, storage, and other services. See Prepare endpoints. - Profiles: Both reference a
DataflowProfilefor scaling and instance configuration. See Manage data flow profiles. - Source configuration: Both support the same source endpoint options (default broker, asset, custom endpoint) and data source (topic) configuration. See Configure a source.
- Destination configuration: Both support static and dynamic destination topics, and table destinations with an output schema and serialization format. See Configure a destination.
- Disk persistence: Both support
requestDiskPersistenceto survive restarts. See Configure disk persistence.
When to use which
Use data flows when:
- You need a simple source-to-destination pipeline with basic transformations.
- You want a generally available, production-ready solution.
Use data flow graphs when:
- You need to branch messages to different processing paths based on conditions.
- You need time-based aggregation (tumbling windows).
- You need multiple chained transforms in a custom topology.
- You need to send the output of built-in or custom WASM transforms to a table-based destination.
For new projects, use data flow graphs. Data flows remain fully supported for all scenarios.