Azure Consume

Azure Consume

Certified

Consume messages from an Azure Service Bus queue

Reads messages from the configured queue until the max records or duration is reached and writes them to internal storage.

yaml
type: io.kestra.plugin.azure.servicebus.Consume
yaml
id: azure_service_bus_consume_example
namespace: company.team

tasks:
  - id: create
    type: io.kestra.plugin.azure.servicebus.Consume
    maxMessages: 100
    maxReceiveDuration: PT30S
    queueName: your-queue-name
    tenantId: "{{ secret('AZURE_TENANT_ID') }}"
    clientId: "{{ secret('AZURE_CLIENT_ID') }}"
    clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
Properties

Azure AD tenant ID (GUID)

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Client ID of the Azure AD application

Application (client) ID used for service principal authentication.

Client secret for the Azure AD application

Secret value associated with the client ID; store in a Kestra secret.

Connection string for the Service Bus namespace or entity; overrides client credential authentication

Maximum messages to consume before returning; leave empty for no cap

DefaultPT10S

Maximum time to wait for messages before returning; Consume defaults to PT10S and Trigger must provide a value

PEM-encoded certificate content for client authentication

PEM text for certificate-based auth; alternative to clientSecret.

Name of the Service Bus queue to connect to; queueName and topicName are mutually exclusive

Possible Values
PEEK_LOCKRECEIVE_AND_DELETE

Service Bus receive mode; defaults to PEEK_LOCK

DefaultSTRING
Possible Values
STRINGJSON

Payload serializer

Serializer/deserializer for the message body; defaults to STRING

Possible Values
NONEDEAD_LETTER_QUEUETRANSFER_DEAD_LETTER_QUEUE

SubQueue type to connect to (e.g., DEAD_LETTER_QUEUE)

Subscription name when connecting to a topic

Name of the Service Bus topic to connect to; queueName and topicName are mutually exclusive

Number of consumed rows

Formaturi

File URI containing consumed messages