Set-AzHDInsightPersistedScriptAction
將先前執行的腳本動作設定為持續性腳本動作。
語法
Set-AzHDInsightPersistedScriptAction
[-ClusterName] <String>
[-ScriptExecutionId] <Int64>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Set-AzHDInsightPersistedScriptAction Cmdlet 會將先前執行的腳本動作設定為持續性腳本動作。 指定的腳稿動作之前必須成功。 每次相應增加 Azure HDInsight 叢集時,腳本動作都會執行。
範例
範例 1:設定先前成功保存的腳本動作,或在叢集相應增加上執行
Set-AzHDInsightPersistedScriptAction `
-ClusterName "your-hadoop-001" `
-ScriptExecutionId "<id>"
此命令會將先前成功的腳本動作設定為持續性腳本動作。
參數
-ClusterName
指定叢集的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
指定資源群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ScriptExecutionId
指定要升級為保存的文稿動作執行標識碼。 此腳本動作必須成功才能升級。 您可以使用 Get-AzHDInsightScriptActionHistory 找到腳本動作執行標識符。
類型: | Int64 |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None