Bagikan melalui


AgentPoolsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates an agent pool.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Fluent.Models.AgentPoolInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.ContainerService.Fluent.IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName, Microsoft.Azure.Management.ContainerService.Fluent.Models.AgentPoolInner parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ContainerService.Fluent.IAgentPoolsOperations * string * string * string * Microsoft.Azure.Management.ContainerService.Fluent.Models.AgentPoolInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Fluent.Models.AgentPoolInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IAgentPoolsOperations, resourceGroupName As String, resourceName As String, agentPoolName As String, parameters As AgentPoolInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AgentPoolInner)

Parameters

operations
IAgentPoolsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

resourceName
String

The name of the managed cluster resource.

agentPoolName
String

The name of the agent pool.

parameters
AgentPoolInner

Parameters supplied to the Create or Update an agent pool operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

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

Applies to