TaskContainerSettings(String, String, ContainerRegistry, Nullable<ContainerWorkingDirectory>) Constructor

Definition

Initializes a new instance of the TaskContainerSettings class.

public TaskContainerSettings (string imageName, string containerRunOptions = null, Microsoft.Azure.Batch.ContainerRegistry registry = null, Nullable<Microsoft.Azure.Batch.Common.ContainerWorkingDirectory> workingDirectory = null);
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 = null, Optional registry As ContainerRegistry = null, Optional workingDirectory As Nullable(Of ContainerWorkingDirectory) = null)

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