Language

AttachedAksClusterCollection.CreateOrUpdateAsync Method

Definition

Attaches an existing AKS cluster to the account, or updates its attachment. A 202 response contains the current attachment; poll GET and inspect properties.status.stage for progress. A 200 response also contains the current attachment state and does not by itself guarantee workload readiness.

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

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.

attachedAksClusterName
String

The name of the account-level AKS attachment. It must contain 1-63 letters, digits, periods, underscores, or hyphens, and start and end with a letter or digit.

data
AttachedAksClusterData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

attachedAksClusterName or data is null.

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

Applies to