Partager via


BatchAccountPoolResource.StopResizeAsync(CancellationToken) Method

Definition

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 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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize
  • Operation Id: Pool_StopResize
  • Default Api Version: 2024-02-01
  • Resource: BatchAccountPoolResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchAccountPoolResource>> StopResizeAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member StopResizeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchAccountPoolResource>>
override this.StopResizeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchAccountPoolResource>>
Public Overridable Function StopResizeAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BatchAccountPoolResource))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to