Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Publish-AzAutomationRunbook

Publishes a runbook.

Syntax

Default (Default)

Publish-AzAutomationRunbook
 [-Name] <String>
 [-ResourceGroupName] <String>
 [-AutomationAccountName] <String>
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

Description

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

Examples

Example 1: Publish a runbook

Publish-AzAutomationRunbook -AutomationAccountName "Contoso17" -Name "Runbk01" -ResourceGroupName "ResourceGroup01"

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

Parameters

-AutomationAccountName

Specifies the name of the Automation account in which this cmdlet publishes a runbook.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-Name

Specifies the name of the runbook that this cmdlet publishes.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:RunbookName

Parameter sets

-ResourceGroupName

Specifies the name of the resource group for which this cmdlet publishes a runbook.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Runbook

Related Links


Feedback

Was this page helpful?