CognitiveServicesManagedComputeDeploymentCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a managed compute deployment associated with the Cognitive Services account.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{deploymentName}.
  • Operation Id. : ManagedComputeDeployments_CreateOrUpdate.
  • Default Api Version. : 2026-03-15-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedComputeDeploymentResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedComputeDeploymentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedComputeDeploymentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedComputeDeploymentResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedComputeDeploymentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesManagedComputeDeploymentResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, deploymentName As String, data As CognitiveServicesManagedComputeDeploymentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CognitiveServicesManagedComputeDeploymentResource))

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.

deploymentName
String

The name of the managed compute deployment associated with the Cognitive Services Account.

data
CognitiveServicesManagedComputeDeploymentData

The managed compute deployment properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

deploymentName or data is null.

deploymentName is an empty string, and was expected to be non-empty.

Applies to