Publish-​Azure​Automation​Runbook

Publishes a runbook.

Syntax

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

Description

The Publish-AzureAutomationRunbook cmdlet publishes a runbook for use in the production environment of Microsoft Azure Automation.

Examples

Example 1: Publish a runbook

PS C:\> Publish-AzureAutomationRunbook -AutomationAccountName "Contoso17" -Name "Runbk01"

This command publishes the runbook named Runbk01 in the Automation account named Contoso17.

Required Parameters

-AutomationAccountName

Specifies the name of the Automation account.

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

Specifies the name of the 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