@Robert Galante Thanks for reaching out. As you have mentioned that you are able to see two messages transferred in the dead letter queue and the rest of the messages were still in the queue. The messages are moved to the dead letter only in these scenarios. So you can use service bus explorer to verify the reason why the messages were moved to the dead letter queue. It looks like the function app was not able to consume the message within the lock duration and after multiple retries, the message has moved to the dead letter queue with the reason MaxDeliveryCountExceededExceptionMessage.
This will help you to verify why the message was moved to the dead letter queue. I will also suggest you to Peek
at some of the messages and verify the property DeliveryCount
of the individual message in service bus explorer to know where those messages were consumed by your client application at least once.
As per the exception, it is the timeout exception. I will suggest you to review your code to verify if there are any other calls apart from service bus that would be cause of the timeout at the function app end.
To troubleshoot the issue from the client side (i.e. function app) I would suggest you to look into the "Diagnose and solve problems" blade in the Function app --> navigate to "Availability and Performance" to see if you can find any issue or full stack error message to troubleshoot it further. In case if you have enabled the application insights logs then you can review the same to verify the full stack error message and troubleshoot it further.
If case if the above doesn't help then please refer to my private comment and share the details so I can review the logs at my end to assist you further.