TaskContainerSettings Constructor

Definition

Initializes a new instance of the TaskContainerSettings class.

public TaskContainerSettings (string imageName, string containerRunOptions = default, Microsoft.Azure.Batch.ContainerRegistry registry = default, Microsoft.Azure.Batch.Common.ContainerWorkingDirectory? workingDirectory = default);
new Microsoft.Azure.Batch.TaskContainerSettings : string * string * Microsoft.Azure.Batch.ContainerRegistry * Nullable<Microsoft.Azure.Batch.Common.ContainerWorkingDirectory> -> Microsoft.Azure.Batch.TaskContainerSettings
Public Sub New (imageName As String, Optional containerRunOptions As String = Nothing, Optional registry As ContainerRegistry = Nothing, Optional workingDirectory As Nullable(Of ContainerWorkingDirectory) = Nothing)

Parameters

imageName
String

The image to use to create the container in which the task will run.

containerRunOptions
String

Additional options to the container create command.

registry
ContainerRegistry

The private registry which contains the container image.

workingDirectory
Nullable<ContainerWorkingDirectory>

The location of the container task working directory.

Applies to