ComputeNodeOperationsExtensions.EnableSchedulingAsync(IComputeNodeOperations, String, String, ComputeNodeEnableSchedulingOptions, CancellationToken) 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 = null, System.Threading.CancellationToken cancellationToken = null);
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>

Parameters

operations
IComputeNodeOperations

The operations group for this extension method.

poolId
System.String

The ID of the pool that contains the compute node.

nodeId
System.String

The ID of the compute node on which you want to enable task scheduling.

computeNodeEnableSchedulingOptions
ComputeNodeEnableSchedulingOptions

Additional parameters for the operation

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ComputeNodeEnableSchedulingHeaders>

Remarks

You can enable task scheduling on a node only if its current scheduling state is disabled

Applies to