Share via


PoolOperationsExtensions.StopResize Method

Definition

Stops an ongoing resize operation on the Pool.

public static Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeHeaders StopResize (this Microsoft.Azure.Batch.Protocol.IPoolOperations operations, string poolId, Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeOptions poolStopResizeOptions = default);
static member StopResize : Microsoft.Azure.Batch.Protocol.IPoolOperations * string * Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeOptions -> Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeHeaders
<Extension()>
Public Function StopResize (operations As IPoolOperations, poolId As String, Optional poolStopResizeOptions As PoolStopResizeOptions = Nothing) As PoolStopResizeHeaders

Parameters

operations
IPoolOperations

The operations group for this extension method.

poolId
String

The ID of the Pool whose resizing you want to stop.

poolStopResizeOptions
PoolStopResizeOptions

Additional parameters for the operation

Returns

Remarks

This does not restore the Pool to its previous state before the resize operation: it only stops any further changes being made, and the Pool maintains its current state. After stopping, the Pool stabilizes at the number of Compute Nodes it was at when the stop operation was done. During the stop operation, the Pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize Pool request; this API can also be used to halt the initial sizing of the Pool when it is created.

Applies to