CognitiveServicesAccountDeploymentResource.PauseAsync Method

Definition

Pauses inferencing on a deployment by setting the deploymentState to 'Paused' (see #/definitions/DeploymentProperties/properties/deploymentState). Only Standard, DataZoneStandard, and GlobalStandard SKUs support this operation. Inference requests to the paused deployment endpoint will receive HTTP 423 (Locked). This operation is idempotent.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}/pause.
  • Operation Id. : Deployments_Pause.
  • Default Api Version. : 2026-01-15-preview.
  • Resource. : CognitiveServicesAccountDeploymentResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountDeploymentResource>> PauseAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member PauseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountDeploymentResource>>
override this.PauseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountDeploymentResource>>
Public Overridable Function PauseAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CognitiveServicesAccountDeploymentResource))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to