PoolOperationsExtensions.StopResizeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stops an ongoing resize operation on the Pool.
public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeHeaders> StopResizeAsync (this Microsoft.Azure.Batch.Protocol.IPoolOperations operations, string poolId, Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeOptions poolStopResizeOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member StopResizeAsync : Microsoft.Azure.Batch.Protocol.IPoolOperations * string * Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.PoolStopResizeHeaders>
<Extension()>
Public Function StopResizeAsync (operations As IPoolOperations, poolId As String, Optional poolStopResizeOptions As PoolStopResizeOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
- cancellationToken
- CancellationToken
The cancellation token.
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
Azure SDK for .NET