Share via


ComputeBatchModelFactory.BatchNodeInfo Method

Definition

Initializes a new instance of BatchNodeInfo.

public static Azure.Compute.Batch.BatchNodeInfo BatchNodeInfo(string affinityId = default, Uri nodeUri = default, string poolId = default, string nodeId = default, string taskRootDirectory = default, Uri taskRootDirectoryUri = default);
static member BatchNodeInfo : string * Uri * string * string * string * Uri -> Azure.Compute.Batch.BatchNodeInfo
Public Shared Function BatchNodeInfo (Optional affinityId As String = Nothing, Optional nodeUri As Uri = Nothing, Optional poolId As String = Nothing, Optional nodeId As String = Nothing, Optional taskRootDirectory As String = Nothing, Optional taskRootDirectoryUri As Uri = Nothing) As BatchNodeInfo

Parameters

affinityId
String

An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.

nodeUri
Uri

The URL of the Compute Node on which the Task ran.

poolId
String

The ID of the Pool on which the Task ran.

nodeId
String

The ID of the Compute Node on which the Task ran.

taskRootDirectory
String

The root directory of the Task on the Compute Node.

taskRootDirectoryUri
Uri

The URL to the root directory of the Task on the Compute Node.

Returns

A new BatchNodeInfo instance for mocking.

Applies to