CognitiveServicesAccountDeploymentResource.Pause(CancellationToken) 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 Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountDeploymentResource> Pause(System.Threading.CancellationToken cancellationToken = default);
abstract member Pause : System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountDeploymentResource>
override this.Pause : System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesAccountDeploymentResource>
Public Overridable Function Pause (Optional cancellationToken As CancellationToken = Nothing) As Response(Of CognitiveServicesAccountDeploymentResource)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.