Get-AzureAutomationScheduledRunbook

Azure Automation Runbook と関連するスケジュールを取得します。

Note

このドキュメントで参照されているコマンドレットは、Azure Service Manager (ASM) API を使用する従来の Azure リソースを管理するためのものです。 ASM の提供終了が予定されているため、新しいリソースを作成する場合、このレガシ PowerShell モジュールは推奨されません。 詳細については、Azure Service Manager の提供終了に関するページを参照してください

Az PowerShell モジュールは、PowerShell を使用して Azure Resource Manager (ARM) リソースを管理するために推奨される PowerShell モジュールです。

構文

Get-AzureAutomationScheduledRunbook
   -AutomationAccountName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureAutomationScheduledRunbook
   -JobScheduleId <Guid>
   -AutomationAccountName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureAutomationScheduledRunbook
   -RunbookName <String>
   -AutomationAccountName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureAutomationScheduledRunbook
   -RunbookName <String>
   -ScheduleName <String>
   -AutomationAccountName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureAutomationScheduledRunbook
   -ScheduleName <String>
   -AutomationAccountName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

説明

重要

Azure Automation 用のこの PowerShell コマンドは、2020 年 1 月 23 日の時点でサポートされなくなりました。 Azure サービス管理モデルは Azure Automation では非推奨となり、その日に無効になりました。 Az.Automation で Azure Resource Management モデルをサポートするコマンドを使用してください。

Get-AzureAutomationScheduledRunbook は、1 つ以上の Azure Automation Runbook と関連するスケジュールを取得します。 既定では、スケジュールされたすべての Runbook が返されます。

特定のスケジュールされた Runbook を取得するには、Runbook 名とスケジュール名を指定します。 Runbook に関連付けられているすべてのスケジュールを取得するには、Runbook 名のみを指定します。 スケジュールに関連付けられているすべての Runbook を取得するには、スケジュール名のみを指定します。

例 1: スケジュールされたすべての Runbook を取得する

PS C:\> Get-AzureAutomationScheduledRunbook -AutomationAccountName "Contoso17"

このコマンドは、Contoso17 という名前の Automation アカウント内のすべてのスケジュールされた Runbook を取得します。

例 2: Runbook に関連付けられているすべてのスケジュールを取得する

PS C:\> Get-AzureAutomationScheduledRunbook -AutomationAccountName "Contoso17" -RunbookName "Runbk01"

このコマンドは、Contoso17 という名前の Automation アカウントの Runbook Runbk01 に対してスケジュールされたすべての Runbook を取得します。

例 3: スケジュールに関連付けられているすべての Runbook を取得する

PS C:\> Get-AzureAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ScheduleName "Schedule01"

このコマンドは、Contoso17 という名前の Automation アカウントの schedule01 のスケジュールされた Runbook をすべて取得します。

パラメーター

-AutomationAccountName

Azure Automation アカウントの名前を指定します。

型:String
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-JobScheduleId

スケジュールされたジョブの ID を指定します。

型:Guid
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-Profile

このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。

型:AzureSMProfile
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-RunbookName

Runbook の名前を指定します。

型:String
Aliases:Name
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-ScheduleName

スケジュールの名前を指定します。

型:String
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

出力

JobSchedule