Share via


ManagedClustersOperationsExtensions.BeginRunCommandAsync Method

Definition

AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see AKS Run Command.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Models.RunCommandResult> BeginRunCommandAsync (this Microsoft.Azure.Management.ContainerService.IManagedClustersOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.ContainerService.Models.RunCommandRequest requestPayload, System.Threading.CancellationToken cancellationToken = default);
static member BeginRunCommandAsync : Microsoft.Azure.Management.ContainerService.IManagedClustersOperations * string * string * Microsoft.Azure.Management.ContainerService.Models.RunCommandRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Models.RunCommandResult>
<Extension()>
Public Function BeginRunCommandAsync (operations As IManagedClustersOperations, resourceGroupName As String, resourceName As String, requestPayload As RunCommandRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RunCommandResult)

Parameters

operations
IManagedClustersOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

resourceName
String

The name of the managed cluster resource.

requestPayload
RunCommandRequest
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to