Share via


TaskContainerSettings Constructors

Definition

Overloads

TaskContainerSettings()

Default constructor to support mocking the TaskContainerSettings class.

TaskContainerSettings(String, String, ContainerRegistry, Nullable<ContainerWorkingDirectory>, IList<ContainerHostBatchBindMountEntry>)

Initializes a new instance of the TaskContainerSettings class.

TaskContainerSettings()

Source:
TaskContainerSettings.cs

Default constructor to support mocking the TaskContainerSettings class.

protected TaskContainerSettings ();
Protected Sub New ()

Applies to

TaskContainerSettings(String, String, ContainerRegistry, Nullable<ContainerWorkingDirectory>, IList<ContainerHostBatchBindMountEntry>)

Source:
TaskContainerSettings.cs

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, System.Collections.Generic.IList<Microsoft.Azure.Batch.ContainerHostBatchBindMountEntry> containerHostBatchBindMounts = default);
new Microsoft.Azure.Batch.TaskContainerSettings : string * string * Microsoft.Azure.Batch.ContainerRegistry * Nullable<Microsoft.Azure.Batch.Common.ContainerWorkingDirectory> * System.Collections.Generic.IList<Microsoft.Azure.Batch.ContainerHostBatchBindMountEntry> -> 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, Optional containerHostBatchBindMounts As IList(Of ContainerHostBatchBindMountEntry) = 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.

containerHostBatchBindMounts
IList<ContainerHostBatchBindMountEntry>

Gets or sets the paths you want to mounted to container task.

Applies to