AttachedAksClusterCollection.CreateOrUpdate 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.
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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.AttachedAksClusterResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string attachedAksClusterName, Azure.ResourceManager.CognitiveServices.AttachedAksClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.AttachedAksClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.AttachedAksClusterResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.AttachedAksClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.AttachedAksClusterResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, attachedAksClusterName As String, data As AttachedAksClusterData, Optional cancellationToken As CancellationToken = Nothing) As 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.
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.