@Simon Hogg I'm glad that you were able to understand the cause of your issue and thank you for posting it here so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others.
Customer shared-
Issue: We are trying to run NextFlow via Azure batch, and it is working well except it is failing to generate reports at the end due to a very unclear error:
Jun-06 15:53:35.187 [FileTransfer-2] WARN nextflow.processor.PublishDir - Failed to publish file: az://sftp/work/61/df5788e0ae539d01ccdf572c03e4eb/sample_1; to: az://sftp/test_Result/salmon/sample_1 [copy] -- See log file for details
Cause: Via the NextFlow Slack channel, I was able to get some more feedback and it seems there is an issue currently with Gen2 storage and NextFlow. We will open a ticket on the Nextflow site to try to resolve.
If your issue remains unresolved or have further questions, please let us know in the comments how we can assist. We are here to help you and strive to make your experience better and greatly value your feedback.