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