/// <summary> /// Executes a command in a specific container instance. /// </summary> /// <remarks> /// Executes a command for a specific container instance in a specified /// resource group and container group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='containerGroupName'> /// The name of the container group. /// </param> /// <param name='containerName'> /// The name of the container instance. /// </param> /// <param name='containerExecRequest'> /// The request for the exec command. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ContainerExecResponse> ExecuteCommandAsync(this IContainersOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ExecuteCommandWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }