Skip to main content

runbook_drafts

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

Overview

Namerunbook_drafts
TypeResource
Idazure.automation.runbook_drafts

Fields

NameDatatypeDescription
creationTimestringGets or sets the creation time of the runbook draft.
draftContentLinkobjectDefinition of the content link.
inEditbooleanGets or sets whether runbook is in edit mode.
lastModifiedTimestringGets or sets the last modified time of the runbook draft.
outputTypesarrayGets or sets the runbook output types.
parametersobjectGets or sets the runbook draft parameters.

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, resourceGroupName, runbookName, subscriptionIdRetrieve the runbook draft identified by runbook name.
undo_editEXECautomationAccountName, resourceGroupName, runbookName, subscriptionIdUndo draft edit to last known published state identified by runbook name.

SELECT examples

Retrieve the runbook draft identified by runbook name.

SELECT
creationTime,
draftContentLink,
inEdit,
lastModifiedTime,
outputTypes,
parameters
FROM azure.automation.runbook_drafts
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND runbookName = '{{ runbookName }}'
AND subscriptionId = '{{ subscriptionId }}';