Sprog

ContainerServiceAgentPoolResource.UpdateAsync Method

Definition

Overloads

Name Description
UpdateAsync(WaitUntil, ContainerServiceAgentPoolData, String, String, CancellationToken)

Creates or updates an agent pool in the specified managed cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}
  • Operation Id: AgentPools_CreateOrUpdate
  • Resource: ContainerServiceAgentPoolResource
UpdateAsync(WaitUntil, ContainerServiceAgentPoolPatch, Nullable<ETag>, CancellationToken)

Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for more information.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}.
  • Operation Id. : AgentPools_Update.
  • Default Api Version. : 2026-06-02-preview.
  • Resource. : ContainerServiceAgentPoolResource.
UpdateAsync(WaitUntil, ContainerServiceAgentPoolData, MatchConditions, CancellationToken)

Update a ContainerServiceAgentPool.

UpdateAsync(WaitUntil, ContainerServiceAgentPoolData, String, String, CancellationToken)

Source:
ContainerServiceAgentPoolResource.cs
Source:
ContainerServiceAgentPoolResource.cs

Creates or updates an agent pool in the specified managed cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}
  • Operation Id: AgentPools_CreateOrUpdate
  • Resource: ContainerServiceAgentPoolResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData data, string ifMatch, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As ContainerServiceAgentPoolData, ifMatch As String, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerServiceAgentPoolResource))

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
ContainerServiceAgentPoolData

The agent pool to create or update.

ifMatch
String

The request should only proceed if an entity matches this string.

ifNoneMatch
String

The request should only proceed if no entity matches this string.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to

UpdateAsync(WaitUntil, ContainerServiceAgentPoolPatch, Nullable<ETag>, CancellationToken)

Source:
ContainerServiceAgentPoolResource.cs

Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for more information.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}.
  • Operation Id. : AgentPools_Update.
  • Default Api Version. : 2026-06-02-preview.
  • Resource. : ContainerServiceAgentPoolResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.Models.ContainerServiceAgentPoolPatch patch, Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.Models.ContainerServiceAgentPoolPatch * Nullable<Azure.ETag> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.Models.ContainerServiceAgentPoolPatch * Nullable<Azure.ETag> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, patch As ContainerServiceAgentPoolPatch, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerServiceAgentPoolResource))

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.

patch
ContainerServiceAgentPoolPatch

The resource properties to be updated.

ifMatch
Nullable<ETag>

The request should only proceed if an entity matches this string.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to

UpdateAsync(WaitUntil, ContainerServiceAgentPoolData, MatchConditions, CancellationToken)

Source:
ContainerServiceAgentPoolResource.cs
Source:
ContainerServiceAgentPoolResource.cs

Update a ContainerServiceAgentPool.

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData data, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As ContainerServiceAgentPoolData, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerServiceAgentPoolResource))

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
ContainerServiceAgentPoolData

The agent pool to create or update.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to