CognitiveServicesAgentDeploymentResource.Update Method

Definition

Update a CognitiveServicesAgentDeployment.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{appName}/agentDeployments/{deploymentName}.
  • Operation Id. : AgentDeploymentResources_CreateOrUpdate.
  • Default Api Version. : 2026-01-15-preview.
  • Resource. : CognitiveServicesAgentDeploymentResource.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentResource> Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesAgentDeploymentResource>
Public Overridable Function Update (waitUntil As WaitUntil, data As CognitiveServicesAgentDeploymentData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CognitiveServicesAgentDeploymentResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

data
CognitiveServicesAgentDeploymentData

Agent Deployment definition object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to