Partager via


OutputFile Class

Definition

On every file uploads, Batch service writes two log files to the compute node, 'fileuploadout.txt' and 'fileuploaderr.txt'. These log files are used to learn more about a specific failure.

public class OutputFile : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.OutputFile>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.OutputFile>
type OutputFile = class
    interface IJsonModel<OutputFile>
    interface IPersistableModel<OutputFile>
Public Class OutputFile
Implements IJsonModel(Of OutputFile), IPersistableModel(Of OutputFile)
Inheritance
OutputFile
Implements

Constructors

OutputFile(String, OutputFileDestination, OutputFileUploadConfig)

Initializes a new instance of OutputFile.

Properties

Destination

The destination for the output file(s).

FilePattern

A pattern indicating which file(s) to upload. Both relative and absolute paths are supported. Relative paths are relative to the Task working directory. The following wildcards are supported: * matches 0 or more characters (for example pattern abc* would match abc or abcdef), ** matches any directory, ? matches any single character, [abc] matches one character in the brackets, and [a-c] matches one character in the range. Brackets can include a negation to match any character not specified (for example [!abc] matches any character but a, b, or c). If a file name starts with "." it is ignored by default but may be matched by specifying it explicitly (for example .gif will not match .a.gif, but ..gif will). A simple example: ***.txt matches any file that does not start in '.' and ends with .txt in the Task working directory or any subdirectory. If the filename contains a wildcard character it can be escaped using brackets (for example abc[] would match a file named abc). Note that both \ and / are treated as directory separators on Windows, but only / is on Linux. Environment variables (%var% on Windows or $var on Linux) are expanded prior to the pattern being applied.

UploadOptions

Additional options for the upload operation, including under what conditions to perform the upload.

Explicit Interface Implementations

IJsonModel<OutputFile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<OutputFile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<OutputFile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OutputFile>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<OutputFile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to