@PK You can use Service Bus trigger for azure function, Service Bus connector for the logic app (that will continuously monitor if there is any active message in the dead letter queue), or write your own custom logic that will continue to monitoring if there are any active message in the dead letter queue and accordingly you can perform the operation on that message.
If you are using the azure function then the queue name will be {yourqueuename}/$DeadLetterQueue
public static void Run([ServiceBusTrigger("myqueuename/$DeadLetterQueue", Connection = "ServiceBusConnection")]string myQueueItem, ILogger log)
{
log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
}
You can refer to the service bus trigger document for more details. Feel free to get back to me if you have any queries or concerns.