servicebus_peek_dlq_to_file
Peek at messages in a Service Bus dead letter queue without removing them, and save message bodies to a JSON file keyed by sequence number.
Instructions
Non-destructively peek at messages in the dead letter queue for an Azure Service Bus queue, saving bodies to a file.
Message bodies are written to output_file as JSON (keyed by sequence number). Only metadata (dead letter reason, error description, sequence number, enqueue time) is returned in context.
connection_string_env_var: name of the environment variable holding the Service Bus connection string. If the variable is set, connection-string auth is used; otherwise DefaultAzureCredential is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| queue | Yes | ||
| output_file | Yes | ||
| max_count | No | ||
| connection_string_env_var | No | AZURE_SERVICEBUS_CONNECTION_STRING |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |