Get-AzureAutomationScheduledRunbook
Azure Automation Runbook と関連するスケジュールを取得します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az 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 アカウントの名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JobScheduleId
スケジュールされたジョブの ID を指定します。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Profile
このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunbookName
Runbook の名前を指定します。
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ScheduleName
スケジュールの名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |