
Azure Consume
CertifiedConsume events from Azure Event Hubs
Azure Consume
Consume events from Azure Event Hubs
Polls Event Hubs partitions in batches, checkpoints to Azure Blob Storage, and writes events to internal storage as Ion. Defaults: consumerGroup=$Default, partitionStartingPosition=EARLIEST, maxBatchSizePerPartition=50, maxWaitTimePerPartition=PT5S, maxDuration=PT10S. Requires checkpointStoreProperties.connectionString and .containerName.
type: io.kestra.plugin.azure.eventhubs.ConsumeExamples
Consume data events from Azure EventHubs.
id: azure_eventhubs_consume_data_events
namespace: company.team
tasks:
- id: consume_from_eventhub
type: io.kestra.plugin.azure.eventhubs.Consume
eventHubName: my_eventhub
namespace: my_eventhub_namespace
connectionString: "{{ secret('EVENTHUBS_CONNECTION') }}"
bodyDeserializer: JSON
consumerGroup: "$Default"
checkpointStoreProperties:
containerName: kestra
connectionString: "{{ secret('BLOB_CONNECTION') }}"
Properties
checkpointStoreProperties *Requiredobject
Checkpoint store properties
Blob container config for checkpoints (connectionString, containerName required)
eventHubName *Requiredstring
Event Hub name
Target Event Hub entity
namespace *Requiredstring
Namespace
Event Hubs namespace when using AAD or shared key auth
bodyDeserializer string
STRINGSTRINGBINARYIONJSONBody deserializer
Serde used to decode event bodies; defaults to STRING
bodyDeserializerProperties object
{}Deserializer properties
Key/value options passed to the selected serde
clientMaxRetries integerstring
5Client max retries
Max retry attempts for Event Hubs client operations; default 5
clientRetryDelay integerstring
500Retry delay (ms)
Delay between client retries in milliseconds; default 500
connectionString string
Event Hubs connection string
Namespace or Event Hub–level connection string; overrides key/sas fields when set
consumerGroup string
$DefaultConsumer group
Event Hubs consumer group name; defaults to $Default
customEndpointAddress string
Custom endpoint address
Custom endpoint for Event Hubs (e.g., for private link); optional
enqueueTime string
Start from enqueue time
Optional enqueue time filter (ISO-8601); overrides starting position when set
maxBatchSizePerPartition integerstring
50Max batch size per partition
Maximum events pulled per partition read; defaults to 50
maxDuration string
PT10SOverall max duration
Stop consuming after this duration; defaults to PT10S
maxWaitTimePerPartition string
PT5SMax wait per partition
Maximum wait for a partition batch before returning; defaults to PT5S
partitionStartingPosition string
EARLIESTEARLIESTLATESTINSTANTStarting position
Initial position strategy per partition; defaults to EARLIEST
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
sasToken string
SAS token
Precomputed SAS token for Event Hubs; optional alternative to shared key/connection string
Outputs
eventsCount integer
Events consumed
uri string
uriConsumed events URI
kestra:// URI for Ion file containing consumed events
Metrics
records.consumed counter
The total number of events consumed.