你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ClustersOperationsExtensions.BeginExecuteScriptActionsAsync 方法

定义

重载

BeginExecuteScriptActionsAsync(IClustersOperations, String, String, ExecuteScriptActionParameters, CancellationToken)

在指定的 HDInsight 群集上执行脚本操作。

BeginExecuteScriptActionsAsync(IClustersOperations, String, String, IList<RuntimeScriptAction>, Boolean, CancellationToken)

开始在指定的 HDInsight Running 群集上执行脚本操作。

BeginExecuteScriptActionsAsync(IClustersOperations, String, String, ExecuteScriptActionParameters, CancellationToken)

在指定的 HDInsight 群集上执行脚本操作。

public static System.Threading.Tasks.Task BeginExecuteScriptActionsAsync (this Microsoft.Azure.Management.HDInsight.IClustersOperations operations, string resourceGroupName, string clusterName, Microsoft.Azure.Management.HDInsight.Models.ExecuteScriptActionParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginExecuteScriptActionsAsync : Microsoft.Azure.Management.HDInsight.IClustersOperations * string * string * Microsoft.Azure.Management.HDInsight.Models.ExecuteScriptActionParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function BeginExecuteScriptActionsAsync (operations As IClustersOperations, resourceGroupName As String, clusterName As String, parameters As ExecuteScriptActionParameters, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

operations
IClustersOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

clusterName
String

群集的名称。

parameters
ExecuteScriptActionParameters

用于执行脚本操作的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于

BeginExecuteScriptActionsAsync(IClustersOperations, String, String, IList<RuntimeScriptAction>, Boolean, CancellationToken)

开始在指定的 HDInsight Running 群集上执行脚本操作。

public static System.Threading.Tasks.Task BeginExecuteScriptActionsAsync (this Microsoft.Azure.Management.HDInsight.IClustersOperations operations, string resourceGroupName, string clusterName, System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.RuntimeScriptAction> scriptActions, bool persistOnSuccess, System.Threading.CancellationToken cancellationToken = default);
static member BeginExecuteScriptActionsAsync : Microsoft.Azure.Management.HDInsight.IClustersOperations * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.RuntimeScriptAction> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function BeginExecuteScriptActionsAsync (operations As IClustersOperations, resourceGroupName As String, clusterName As String, scriptActions As IList(Of RuntimeScriptAction), persistOnSuccess As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

operations
IClustersOperations

对 Microsoft.Azure.Management.HDInsight.IClusterOperations 的引用。

resourceGroupName
String

必需。 资源组的名称。

clusterName
String

必需。 群集的名称。

scriptActions
IList<RuntimeScriptAction>

必需。 需要执行的脚本操作的列表。

persistOnSuccess
Boolean

必需。 指示是否需要保留脚本的标志。

cancellationToken
CancellationToken

取消标记。

返回

群集长时间运行的操作响应。

适用于