runbook_draft_contents
Creates, updates, deletes, gets or lists a runbook_draft_contents
resource.
Overview
Name | runbook_draft_contents |
Type | Resource |
Id | azure.automation.runbook_draft_contents |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
replace | replace | subscriptionId , resourceGroupName , automationAccountName , runbookName | Replaces the runbook draft content. | |
get | exec | subscriptionId , resourceGroupName , automationAccountName , runbookName | Retrieve the content of runbook draft identified by runbook name. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
automationAccountName | string | The name of the automation account. |
resourceGroupName | string | Name of an Azure Resource group. |
runbookName | string | The runbook name. |
subscriptionId | string | Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
REPLACE
examples
- replace
Replaces the runbook draft content.
REPLACE azure.automation.runbook_draft_contents
SET
-- No updatable properties
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND automationAccountName = '{{ automationAccountName }}' --required
AND runbookName = '{{ runbookName }}' --required;
Lifecycle Methods
- get
Retrieve the content of runbook draft identified by runbook name.
EXEC azure.automation.runbook_draft_contents.get
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@automationAccountName='{{ automationAccountName }}' --required,
@runbookName='{{ runbookName }}' --required
;