PoolOperations.RebootAsync Method (String, String, Nullable<ComputeNodeRebootOption>, IEnumerable<BatchClientBehavior>)
Reboots the specified compute node.
Namespace: Microsoft.Azure.Batch
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
public Task RebootAsync(
string poolId,
string computeNodeId,
Nullable<ComputeNodeRebootOption> rebootOption = null,
IEnumerable<BatchClientBehavior> additionalBehaviors = null
)
public:
Task^ RebootAsync(
String^ poolId,
String^ computeNodeId,
Nullable<ComputeNodeRebootOption> rebootOption = null,
IEnumerable<BatchClientBehavior^>^ additionalBehaviors = null
)
member RebootAsync :
poolId:string *
computeNodeId:string *
rebootOption:Nullable<ComputeNodeRebootOption> = null *
additionalBehaviors:IEnumerable<BatchClientBehavior> = null -> Task
Public Function RebootAsync (
poolId As String,
computeNodeId As String,
rebootOption As Nullable(Of ComputeNodeRebootOption),
additionalBehaviors As IEnumerable(Of BatchClientBehavior)
) As Task
Parameters
poolId
Type: System.StringThe id of the pool that contains the compute node.
computeNodeId
Type: System.StringThe id of the compute node to reboot.
rebootOption
Type: System.Nullable<ComputeNodeRebootOption>Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue.
additionalBehaviors
Type: System.Collections.Generic.IEnumerable<BatchClientBehavior>A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.
Return Value
Type: System.Threading.Tasks.Task
A Task that represents the asynchronous operation.
Remarks
You can reboot a compute node only when it is in the Idle or Running state.
The reboot operation runs asynchronously.
See Also
PoolOperations Class
Microsoft.Azure.Batch Namespace
Return to top