Skip to main content

script_execution_histories

Creates, updates, deletes, gets or lists a script_execution_histories resource.

Overview

Namescript_execution_histories
TypeResource
Idazure.hdinsight.script_execution_histories

Fields

NameDatatypeDescription
namestringThe name of the script action.
applicationNamestringThe application name of the script action, if any.
debugInformationstringThe script action execution debug information.
endTimestringThe end time of script action execution.
executionSummaryarrayThe summary of script action execution result.
operationstringThe reason why the script action was executed.
parametersstringThe parameters for the script
rolesarrayThe list of roles where script will be executed.
scriptExecutionIdintegerThe execution id of the script action.
startTimestringThe start time of script action execution.
statusstringThe current execution status of the script action.
uristringThe URI to the script.

Methods

NameAccessible byRequired ParamsDescription
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdLists all scripts' execution history for the specified cluster.
promoteEXECclusterName, resourceGroupName, scriptExecutionId, subscriptionIdPromotes the specified ad-hoc script execution to a persisted script.

SELECT examples

Lists all scripts' execution history for the specified cluster.

SELECT
name,
applicationName,
debugInformation,
endTime,
executionSummary,
operation,
parameters,
roles,
scriptExecutionId,
startTime,
status,
uri
FROM azure.hdinsight.script_execution_histories
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';