Skip to main content

SYNOPSIS

Copies all runbooks from a source Azure Automation account to a destination account.

SYNTAX

DESCRIPTION

This function exports all runbooks from a source Azure Automation account and imports them into a destination Azure Automation account within the same resource group.

EXAMPLES

EXAMPLE 1

Copies all runbooks from ‘newauto’ to ‘newauto1’.

EXAMPLE 2

Copies all runbooks using a custom temporary folder.

PARAMETERS

-SourceAutomationAccount

The name of the source Azure Automation account to export runbooks from.

-DestinationAutomationAccount

The name of the destination Azure Automation account to import runbooks into.

-ResourceGroup

The name of the resource group containing both Automation accounts.

-TempFolder

(Optional) The temporary folder path used to store exported runbooks. Defaults to a timestamped folder in the system temp directory. Note: Only auto-generated folders are deleted at the end. If you provide an existing folder, its contents are NOT cleaned up.

CommonParameters

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

INPUTS

OUTPUTS

NOTES

https://ps365.clidsys.com/docs/commands/Copy-AzAutomationRunbook