New-AzAutomationRunbook

Erstellt ein Automatisierungs-Runbook.

Syntax

New-AzAutomationRunbook
   [-Name] <String>
   [-Description <String>]
   [-Tags <IDictionary>]
   -Type <String>
   [-LogProgress <Boolean>]
   [-LogVerbose <Boolean>]
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Beschreibung

Das Cmdlet New-AzAutomationRunbook erstellt ein leeres Azure Automation-Runbook mithilfe von APS. Geben Sie einen Namen für das Runbook an.

Beispiele

Beispiel 1: Erstellen eines Runbook

New-AzAutomationRunbook -AutomationAccountName "Contoso17" -Name "Runbook02" -ResourceGroupName "ResourceGroup01"

Mit diesem Befehl wird ein Runbook namens Runbook02 im Azure Automation-Konto namens Contoso17 erstellt.

Beispiel 2

Erstellt ein Automatisierungs-Runbook. (automatisch generiert)

New-AzAutomationRunbook -AutomationAccountName 'Contoso17' -Name 'Runbook02' -ResourceGroupName 'ResourceGroup01' -Type PowerShell

Parameter

-AutomationAccountName

Gibt den Namen des Automatisierungskontos an, in dem dieses Cmdlet ein Runbook erstellt.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

Gibt eine Beschreibung für das Runbook an.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-LogProgress

Gibt an, ob der Status des Runbook protokolliert wird.

Type:Nullable<T>[Boolean]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-LogVerbose

Gibt an, ob die Protokollierung detaillierte Informationen enthält.

Type:Nullable<T>[Boolean]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Gibt einen Namen für das Runbook an.

Type:String
Aliases:RunbookName
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Gibt den Namen der Ressourcengruppe an, für die dieses Cmdlet ein Runbook erstellt.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Tags

Schlüssel-Wert-Paare in Form einer Hashtabelle. Beispiel: @{key0="value0"; key1=$null; key2="value2"}

Type:IDictionary
Aliases:Tag
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Type

Gibt den Typ des von diesem Cmdlet erstellten Runbook an. Gültige Werte sind:

  • PowerShell
  • GraphicPowerShell
  • PowerShellWorkflow
  • GraphicalPowerShellWorkflow
  • Graph
  • Python2 Der Wert Graph ist veraltet. Es entspricht GraphicPowerShellWorkflow.
Type:String
Accepted values:PowerShell, GraphicalPowerShell, PowerShellWorkflow, GraphicalPowerShellWorkflow, Graph, Python2, Python3, Powershell72
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

String

IDictionary

Nullable<T>[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]

Ausgaben

Runbook