< Back

Set-AzureRmHDInsightPersistedScriptAction

Tue Jan 29, 2019 9:48 pm

NAME Set-AzureRmHDInsightPersistedScriptAction



SYNOPSIS

Sets a previously executed script action to be a persisted script action.





SYNTAX

Set-AzureRmHDInsightPersistedScriptAction [-ClusterName] <String> [-ScriptExecutionId] <Int64> [-DefaultProfile <IAzureContextContainer>]

[-ResourceGroupName <String>] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmHDInsightPersistedScriptAction cmdlet sets a previously executed script action to be a persisted script action. The specified

script action must have previously succeeded. The script action will run each time the Azure HDInsight cluster is scaled up.





PARAMETERS

-ClusterName <String>

Specifies the name of the cluster.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ScriptExecutionId <Int64>

Specifies the execution ID of the script action to promote to persisted. This script action must have succeeded in order to be promoted. You

can find the script action execution ID using Get-AzureRmHDInsightScriptActionHistory.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

System.Void







NOTES









Example 1: Set a previously successful script action to be persisted, or run on cluster scale up



PS C:\\>Set-AzureRmHDInsightPersistedScriptAction `

-ClusterName "your-hadoop-001" `

-ScriptExecutionId "<id>"



This command sets a previously successful script action to be a persisted script action.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... riptaction

Get-AzureRmHDInsightPersistedScriptAction

Remove-AzureRmHDInsightPersistedScriptAction