Edit

Share via


Configure disk persistence for data flows in Azure IoT Operations

Disk persistence lets data flows and data flow graphs keep processing state across restarts. When you enable this feature, the MQTT broker persists data (like messages in the subscriber queue) to disk. This approach makes sure your data flow's data source doesn't lose data during power outages or broker restarts. The broker maintains optimal performance because persistence is configured per data flow, so only the data flows that need it use this feature.

The data flow requests persistence during subscription by using an MQTTv5 user property. This feature works only when:

  • The data flow uses the MQTT broker or asset as the source
  • The MQTT broker has persistence enabled with dynamic persistence mode set to Enabled for the data type, like subscriber queues

For details about MQTT broker persistence configuration, see Configure MQTT broker persistence.

The setting accepts Enabled or Disabled. Disabled is the default.

Configure for a data flow

When you create or edit a data flow, select Edit, and then select Yes next to Request data persistence.

Configure for a data flow graph

When you create or edit a data flow graph, select Edit, and then select Yes next to Request data persistence.