Share via


TaskOutputStorage Class

Definition

Represents persistent storage for the outputs of an Azure Batch task.

public class TaskOutputStorage
type TaskOutputStorage = class
Public Class TaskOutputStorage
Inheritance
TaskOutputStorage

Remarks

Task outputs refer to output data logically associated with a specific task, rather than the job as a whole. For example, in a movie rendering job, if a task rendered a single frame, that frame would be a task output. Logs and other diagnostic information such as intermediate files may also be persisted as task outputs (see TaskOutputKind for a way to categorise these so that clients can distinguish between the main output and auxiliary data).

Constructors

TaskOutputStorage(BlobServiceClient, String, String)

Initializes a new instance of the JobOutputStorage class from a storage account, job id, and task id.

TaskOutputStorage(Uri, String)

Initializes a new instance of the JobOutputStorage class from a task id and a URL representing the job output container.

Methods

GetOutput(TaskOutputKind, String)

Retrieves a task output from Azure blob storage by kind and path.

GetOutputStoragePath(TaskOutputKind)

Gets the Blob name prefix/folder where files of the given kind are stored

ListOutputs(TaskOutputKind)

Lists the task outputs of the specified kind.

SaveAsync(TaskOutputKind, String, CancellationToken)

Saves the specified file to persistent storage.

SaveAsync(TaskOutputKind, String, String, CancellationToken)

Saves the specified file to persistent storage.

SaveTextAsync(TaskOutputKind, String, String, CancellationToken)

Saves the specified text to persistent storage, without requiring you to create a local file.

SaveTrackedAsync(String)

Saves the specified file to persistent storage as a TaskLog, and tracks subsequent appends to the file and appends them to the persistent copy too.

SaveTrackedAsync(TaskOutputKind, String, String, TimeSpan)

Saves the specified file to persistent storage, and tracks subsequent appends to the file and appends them to the persistent copy too.

Applies to