Share via

How to persist stdout and stderr files generated by Azure Batch through the Azure Portal?

Carlos Santos 0 Reputation points
2023-06-02T11:51:55.5466667+00:00

I have a few jobs on Azure Batch that have been presenting some failures lately. However, it is not possible to diagnose what is the problem, since the stderr and stdout files are deleted right after the task has been executed. I read that this has to do with the fact that the jobs are not saving these files in the Storage Account container, so they are only available as long as the node is alive (a few seconds after the execution from what I tested).

Is there a way to set the jobs to save these files somewhere just so I can understand what happens when my application throws an exception? It has to be through Azure Portal, since I don't have permission to install any Azure-related software right now in my company.

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

Azure Batch
Azure Batch

An Azure service that provides cloud-scale job scheduling and compute management.

{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.