published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Retrieve the runbook identified by runbook name.
Uses Azure REST API version 2024-10-23.
Other available API versions: 2015-10-31, 2018-06-30, 2019-06-01, 2022-08-08, 2023-05-15-preview, 2023-11-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]. See the version guide for details.
Using getRunbook
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRunbook(args: GetRunbookArgs, opts?: InvokeOptions): Promise<GetRunbookResult>
function getRunbookOutput(args: GetRunbookOutputArgs, opts?: InvokeOptions): Output<GetRunbookResult>def get_runbook(automation_account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
runbook_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRunbookResult
def get_runbook_output(automation_account_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
runbook_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRunbookResult]func LookupRunbook(ctx *Context, args *LookupRunbookArgs, opts ...InvokeOption) (*LookupRunbookResult, error)
func LookupRunbookOutput(ctx *Context, args *LookupRunbookOutputArgs, opts ...InvokeOption) LookupRunbookResultOutput> Note: This function is named LookupRunbook in the Go SDK.
public static class GetRunbook
{
public static Task<GetRunbookResult> InvokeAsync(GetRunbookArgs args, InvokeOptions? opts = null)
public static Output<GetRunbookResult> Invoke(GetRunbookInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRunbookResult> getRunbook(GetRunbookArgs args, InvokeOptions options)
public static Output<GetRunbookResult> getRunbook(GetRunbookArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:automation:getRunbook
arguments:
# arguments dictionaryThe following arguments are supported:
- Automation
Account stringName - The name of the automation account.
- Resource
Group stringName - Name of an Azure Resource group.
- Runbook
Name string - The runbook name.
- Automation
Account stringName - The name of the automation account.
- Resource
Group stringName - Name of an Azure Resource group.
- Runbook
Name string - The runbook name.
- automation
Account StringName - The name of the automation account.
- resource
Group StringName - Name of an Azure Resource group.
- runbook
Name String - The runbook name.
- automation
Account stringName - The name of the automation account.
- resource
Group stringName - Name of an Azure Resource group.
- runbook
Name string - The runbook name.
- automation_
account_ strname - The name of the automation account.
- resource_
group_ strname - Name of an Azure Resource group.
- runbook_
name str - The runbook name.
- automation
Account StringName - The name of the automation account.
- resource
Group StringName - Name of an Azure Resource group.
- runbook
Name String - The runbook name.
getRunbook Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Automation. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Creation
Time string - Gets or sets the creation time.
- Description string
- Gets or sets the description.
- Draft
Pulumi.
Azure Native. Automation. Outputs. Runbook Draft Response - Gets or sets the draft runbook properties.
- Etag string
- Gets or sets the etag of the resource.
- Job
Count int - Gets or sets the job count of the runbook.
- Last
Modified stringBy - Gets or sets the last modified by.
- Last
Modified stringTime - Gets or sets the last modified time.
- Log
Activity intTrace - Gets or sets the option to log activity trace of the runbook.
- Log
Progress bool - Gets or sets progress log option.
- Log
Verbose bool - Gets or sets verbose log option.
- Output
Types List<string> - Gets or sets the runbook output types.
- Parameters
Dictionary<string, Pulumi.
Azure Native. Automation. Outputs. Runbook Parameter Response> - Gets or sets the runbook parameters.
- Provisioning
State string - Gets or sets the provisioning state of the runbook.
- Publish
Content Pulumi.Link Azure Native. Automation. Outputs. Content Link Response - Gets or sets the published runbook content link.
- Runbook
Type string - Gets or sets the type of the runbook.
- Runtime
Environment string - Runtime Environment of the runbook execution.
- State string
- Gets or sets the state of the runbook.
- Dictionary<string, string>
- Resource tags.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Creation
Time string - Gets or sets the creation time.
- Description string
- Gets or sets the description.
- Draft
Runbook
Draft Response - Gets or sets the draft runbook properties.
- Etag string
- Gets or sets the etag of the resource.
- Job
Count int - Gets or sets the job count of the runbook.
- Last
Modified stringBy - Gets or sets the last modified by.
- Last
Modified stringTime - Gets or sets the last modified time.
- Log
Activity intTrace - Gets or sets the option to log activity trace of the runbook.
- Log
Progress bool - Gets or sets progress log option.
- Log
Verbose bool - Gets or sets verbose log option.
- Output
Types []string - Gets or sets the runbook output types.
- Parameters
map[string]Runbook
Parameter Response - Gets or sets the runbook parameters.
- Provisioning
State string - Gets or sets the provisioning state of the runbook.
- Publish
Content ContentLink Link Response - Gets or sets the published runbook content link.
- Runbook
Type string - Gets or sets the type of the runbook.
- Runtime
Environment string - Runtime Environment of the runbook execution.
- State string
- Gets or sets the state of the runbook.
- map[string]string
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Time String - Gets or sets the creation time.
- description String
- Gets or sets the description.
- draft
Runbook
Draft Response - Gets or sets the draft runbook properties.
- etag String
- Gets or sets the etag of the resource.
- job
Count Integer - Gets or sets the job count of the runbook.
- last
Modified StringBy - Gets or sets the last modified by.
- last
Modified StringTime - Gets or sets the last modified time.
- log
Activity IntegerTrace - Gets or sets the option to log activity trace of the runbook.
- log
Progress Boolean - Gets or sets progress log option.
- log
Verbose Boolean - Gets or sets verbose log option.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters
Map<String,Runbook
Parameter Response> - Gets or sets the runbook parameters.
- provisioning
State String - Gets or sets the provisioning state of the runbook.
- publish
Content ContentLink Link Response - Gets or sets the published runbook content link.
- runbook
Type String - Gets or sets the type of the runbook.
- runtime
Environment String - Runtime Environment of the runbook execution.
- state String
- Gets or sets the state of the runbook.
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Time string - Gets or sets the creation time.
- description string
- Gets or sets the description.
- draft
Runbook
Draft Response - Gets or sets the draft runbook properties.
- etag string
- Gets or sets the etag of the resource.
- job
Count number - Gets or sets the job count of the runbook.
- last
Modified stringBy - Gets or sets the last modified by.
- last
Modified stringTime - Gets or sets the last modified time.
- log
Activity numberTrace - Gets or sets the option to log activity trace of the runbook.
- log
Progress boolean - Gets or sets progress log option.
- log
Verbose boolean - Gets or sets verbose log option.
- output
Types string[] - Gets or sets the runbook output types.
- parameters
{[key: string]: Runbook
Parameter Response} - Gets or sets the runbook parameters.
- provisioning
State string - Gets or sets the provisioning state of the runbook.
- publish
Content ContentLink Link Response - Gets or sets the published runbook content link.
- runbook
Type string - Gets or sets the type of the runbook.
- runtime
Environment string - Runtime Environment of the runbook execution.
- state string
- Gets or sets the state of the runbook.
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation_
time str - Gets or sets the creation time.
- description str
- Gets or sets the description.
- draft
Runbook
Draft Response - Gets or sets the draft runbook properties.
- etag str
- Gets or sets the etag of the resource.
- job_
count int - Gets or sets the job count of the runbook.
- last_
modified_ strby - Gets or sets the last modified by.
- last_
modified_ strtime - Gets or sets the last modified time.
- log_
activity_ inttrace - Gets or sets the option to log activity trace of the runbook.
- log_
progress bool - Gets or sets progress log option.
- log_
verbose bool - Gets or sets verbose log option.
- output_
types Sequence[str] - Gets or sets the runbook output types.
- parameters
Mapping[str, Runbook
Parameter Response] - Gets or sets the runbook parameters.
- provisioning_
state str - Gets or sets the provisioning state of the runbook.
- publish_
content_ Contentlink Link Response - Gets or sets the published runbook content link.
- runbook_
type str - Gets or sets the type of the runbook.
- runtime_
environment str - Runtime Environment of the runbook execution.
- state str
- Gets or sets the state of the runbook.
- Mapping[str, str]
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Time String - Gets or sets the creation time.
- description String
- Gets or sets the description.
- draft Property Map
- Gets or sets the draft runbook properties.
- etag String
- Gets or sets the etag of the resource.
- job
Count Number - Gets or sets the job count of the runbook.
- last
Modified StringBy - Gets or sets the last modified by.
- last
Modified StringTime - Gets or sets the last modified time.
- log
Activity NumberTrace - Gets or sets the option to log activity trace of the runbook.
- log
Progress Boolean - Gets or sets progress log option.
- log
Verbose Boolean - Gets or sets verbose log option.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook parameters.
- provisioning
State String - Gets or sets the provisioning state of the runbook.
- publish
Content Property MapLink - Gets or sets the published runbook content link.
- runbook
Type String - Gets or sets the type of the runbook.
- runtime
Environment String - Runtime Environment of the runbook execution.
- state String
- Gets or sets the state of the runbook.
- Map<String>
- Resource tags.
Supporting Types
ContentHashResponse
ContentLinkResponse
- Content
Hash Pulumi.Azure Native. Automation. Inputs. Content Hash Response - Gets or sets the hash.
- Uri string
- Gets or sets the uri of content.
- Version string
- Gets or sets the version of the content.
- Content
Hash ContentHash Response - Gets or sets the hash.
- Uri string
- Gets or sets the uri of content.
- Version string
- Gets or sets the version of the content.
- content
Hash ContentHash Response - Gets or sets the hash.
- uri String
- Gets or sets the uri of content.
- version String
- Gets or sets the version of the content.
- content
Hash ContentHash Response - Gets or sets the hash.
- uri string
- Gets or sets the uri of content.
- version string
- Gets or sets the version of the content.
- content_
hash ContentHash Response - Gets or sets the hash.
- uri str
- Gets or sets the uri of content.
- version str
- Gets or sets the version of the content.
- content
Hash Property Map - Gets or sets the hash.
- uri String
- Gets or sets the uri of content.
- version String
- Gets or sets the version of the content.
RunbookDraftResponse
- Creation
Time string - Gets or sets the creation time of the runbook draft.
- Draft
Content Pulumi.Link Azure Native. Automation. Inputs. Content Link Response - Gets or sets the draft runbook content link.
- In
Edit bool - Gets or sets whether runbook is in edit mode.
- Last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- Output
Types List<string> - Gets or sets the runbook output types.
- Parameters
Dictionary<string, Pulumi.
Azure Native. Automation. Inputs. Runbook Parameter Response> - Gets or sets the runbook draft parameters.
- Creation
Time string - Gets or sets the creation time of the runbook draft.
- Draft
Content ContentLink Link Response - Gets or sets the draft runbook content link.
- In
Edit bool - Gets or sets whether runbook is in edit mode.
- Last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- Output
Types []string - Gets or sets the runbook output types.
- Parameters
map[string]Runbook
Parameter Response - Gets or sets the runbook draft parameters.
- creation
Time String - Gets or sets the creation time of the runbook draft.
- draft
Content ContentLink Link Response - Gets or sets the draft runbook content link.
- in
Edit Boolean - Gets or sets whether runbook is in edit mode.
- last
Modified StringTime - Gets or sets the last modified time of the runbook draft.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters
Map<String,Runbook
Parameter Response> - Gets or sets the runbook draft parameters.
- creation
Time string - Gets or sets the creation time of the runbook draft.
- draft
Content ContentLink Link Response - Gets or sets the draft runbook content link.
- in
Edit boolean - Gets or sets whether runbook is in edit mode.
- last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- output
Types string[] - Gets or sets the runbook output types.
- parameters
{[key: string]: Runbook
Parameter Response} - Gets or sets the runbook draft parameters.
- creation_
time str - Gets or sets the creation time of the runbook draft.
- draft_
content_ Contentlink Link Response - Gets or sets the draft runbook content link.
- in_
edit bool - Gets or sets whether runbook is in edit mode.
- last_
modified_ strtime - Gets or sets the last modified time of the runbook draft.
- output_
types Sequence[str] - Gets or sets the runbook output types.
- parameters
Mapping[str, Runbook
Parameter Response] - Gets or sets the runbook draft parameters.
- creation
Time String - Gets or sets the creation time of the runbook draft.
- draft
Content Property MapLink - Gets or sets the draft runbook content link.
- in
Edit Boolean - Gets or sets whether runbook is in edit mode.
- last
Modified StringTime - Gets or sets the last modified time of the runbook draft.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook draft parameters.
RunbookParameterResponse
- Default
Value string - Gets or sets the default value of parameter.
- Is
Mandatory bool - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- Position int
- Get or sets the position of the parameter.
- Type string
- Gets or sets the type of the parameter.
- Default
Value string - Gets or sets the default value of parameter.
- Is
Mandatory bool - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- Position int
- Get or sets the position of the parameter.
- Type string
- Gets or sets the type of the parameter.
- default
Value String - Gets or sets the default value of parameter.
- is
Mandatory Boolean - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position Integer
- Get or sets the position of the parameter.
- type String
- Gets or sets the type of the parameter.
- default
Value string - Gets or sets the default value of parameter.
- is
Mandatory boolean - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position number
- Get or sets the position of the parameter.
- type string
- Gets or sets the type of the parameter.
- default_
value str - Gets or sets the default value of parameter.
- is_
mandatory bool - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position int
- Get or sets the position of the parameter.
- type str
- Gets or sets the type of the parameter.
- default
Value String - Gets or sets the default value of parameter.
- is
Mandatory Boolean - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position Number
- Get or sets the position of the parameter.
- type String
- Gets or sets the type of the parameter.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Friday, Mar 20, 2026 by Pulumi
