Share via


ComputeNodeOperationsExtensions.EnableSchedulingAsync Method

Definition

Enables Task scheduling on the specified Compute Node.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeEnableSchedulingHeaders> EnableSchedulingAsync (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member EnableSchedulingAsync : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeEnableSchedulingOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeEnableSchedulingHeaders>
<Extension()>
Public Function EnableSchedulingAsync (operations As IComputeNodeOperations, poolId As String, nodeId As String, Optional computeNodeEnableSchedulingOptions As ComputeNodeEnableSchedulingOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputeNodeEnableSchedulingHeaders)

Parameters

operations
IComputeNodeOperations

The operations group for this extension method.

poolId
String

The ID of the Pool that contains the Compute Node.

nodeId
String

The ID of the Compute Node on which you want to enable Task scheduling.

computeNodeEnableSchedulingOptions
ComputeNodeEnableSchedulingOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

You can enable Task scheduling on a Compute Node only if its current scheduling state is disabled

Applies to