Partager via


ManagedClustersOperationsExtensions.RunCommandAsync 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> RunCommandAsync (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 RunCommandAsync : 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 RunCommandAsync (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