Sprog

ArcDeploymentCollection.CreateOrUpdateAsync Method

Definition

Creates or updates an Arc deployment associated with the Cognitive Services account.

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

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 Arc deployment associated with the Cognitive Services Account. The name must be unique within the account across deployments, managedComputeDeployments, and arcDeployments.

data
ArcDeploymentData

The Arc 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