We've recently made some improvements to the Publish Test Results task in Azure Pipelines. This task now supports file attachments when publishing test results from a JUnit report.
JUnit Attachments Report Format
The JUnit XML report format doesn't officially have support for file attachments but there is a common convention of including ...