servicebus_peek_subscription_dlq_to_file
Peek dead-letter messages from a Service Bus topic subscription without consuming them, writing message bodies to a file as JSON and returning metadata.
Instructions
Non-destructively peek at messages in the dead letter queue for a topic subscription, 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 | ||
| topic | Yes | ||
| subscription | Yes | ||
| output_file | Yes | ||
| max_count | No | ||
| connection_string_env_var | No | AZURE_SERVICEBUS_CONNECTION_STRING |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |