Get-​Azure​Rm​Automation​Runbook

Gets a runbook.

Syntax

Get-AzureRmAutomationRunbook
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-Name] <String>
   [<CommonParameters>]

Description

The Get-AzureRmAutomationRunbook cmdlet gets Azure Automation runbooks. To get a specific runbook, specify its name.

Examples

Example 1: Get all runbooks

PS C:\>Get-AzureRmAutomationRunbook -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01"

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

Required Parameters

-AutomationAccountName

Specifies the name of an Automation account in which this cmdlet gets runbooks.

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

Specifies the name of a runbook that this cmdlet gets.

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

Specifies the name of the resource group for which this cmdlet gets runbooks.

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

Outputs

Microsoft.Azure.Commands.Automation.Model.Runbook