Get-​Azure​Automation​Runbook

Gets a runbook.

Syntax

Get-AzureAutomationRunbook
   -AutomationAccountName <String>
   -Name <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The Get-AzureAutomationRunbook cmdlet gets one or more Microsoft Azure Automation runbooks. By default, all runbooks are returned. To get a specific runbook, specify its name or ID. To get all runbooks linked to a specific schedule, specify the schedule name.

Examples

Example 1: Get all runbooks

PS C:\> Get-AzureAutomationRunbook -AutomationAccountName "Contoso17"

This command gets all runbooks in the Azure Automation account named Contoso17.

Required Parameters

-AutomationAccountName

Specifies the name of an Azure Automation account.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of a runbook.

Type:String
Aliases:RunbookName
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.Automation.Model.Runbook