Azure 计划程序 PowerShell cmdlet 参考PowerShell cmdlets reference for Azure Scheduler

Important

Azure 逻辑应用将替换即将停用的 Azure 计划程序。Azure Logic Apps is replacing Azure Scheduler, which is being retired. 若要继续使用在计划程序中设置的作业,请尽快迁移到 Azure 逻辑应用To continue working with the jobs that you set up in Scheduler, please migrate to Azure Logic Apps as soon as possible.

Note

本文进行了更新,以便使用新的 Azure PowerShell Az 模块。This article has been updated to use the new Azure PowerShell Az module. 你仍然可以使用 AzureRM 模块,至少在 2020 年 12 月之前,它将继续接收 bug 修补程序。You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. 若要详细了解新的 Az 模块和 AzureRM 兼容性,请参阅新 Azure Powershell Az 模块简介To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. 有关 Az 模块安装说明,请参阅安装 Azure PowerShellFor Az module installation instructions, see Install Azure PowerShell.

若要编写脚本以创建和管理计划程序作业和作业集合,可以使用 PowerShell cmdlet。To author scripts for creating and managing Scheduler jobs and job collections, you can use PowerShell cmdlets. 本文列出了主要 Azure 计划程序 PowerShell cmdlet,以及指向其参考文章的链接。This article lists the major PowerShell cmdlets for Azure Scheduler with links to their reference articles. 要为 Azure 订阅安装 Azure PowerShell,请参阅如何安装和配置 Azure PowerShellTo install Azure PowerShell for your Azure subscription, see How to install and configure Azure PowerShell. 有关 Azure Resource Manager cmdlet 的详细信息,请参阅将 Azure PowerShell 与 Azure Resource Manager 配合使用For more information about Azure Resource Manager cmdlets, see Using Azure PowerShell with Azure Resource Manager.

CmdletCmdlet 说明Description
Disable-AzSchedulerJobCollectionDisable-AzSchedulerJobCollection 禁用某一作业集合。Disables a job collection.
Enable-AzureRmSchedulerJobCollectionEnable-AzureRmSchedulerJobCollection 启用某一作业集合。Enables a job collection.
Get-AzSchedulerJobGet-AzSchedulerJob 获取计划程序作业。Gets Scheduler jobs.
Get-AzSchedulerJobCollectionGet-AzSchedulerJobCollection 获取作业集合。Gets job collections.
Get-AzSchedulerJobHistoryGet-AzSchedulerJobHistory 获取作业历史记录。Gets job history.
New-AzSchedulerHttpJobNew-AzSchedulerHttpJob 创建 HTTP 作业。Creates an HTTP job.
New-AzSchedulerJobCollectionNew-AzSchedulerJobCollection 创建作业集合。Creates a job collection.
New-AzSchedulerServiceBusQueueJobNew-AzSchedulerServiceBusQueueJob 创建服务总线队列作业。Creates a Service Bus queue job.
New-AzSchedulerServiceBusTopicJobNew-AzSchedulerServiceBusTopicJob 创建服务总线主题作业。Creates a Service Bus topic job.
New-AzSchedulerStorageQueueJobNew-AzSchedulerStorageQueueJob 创建存储队列作业。Creates a Storage queue job.
Remove-AzSchedulerJobRemove-AzSchedulerJob 删除计划程序作业。Removes a Scheduler job.
Remove-AzSchedulerJobCollectionRemove-AzSchedulerJobCollection 删除作业集合。Removes a job collection.
Set-AzSchedulerHttpJobSet-AzSchedulerHttpJob 修改计划程序 HTTP 作业。Modifies a Scheduler HTTP job.
Set-AzSchedulerJobCollectionSet-AzSchedulerJobCollection 修改作业集合。Modifies a job collection.
Set-AzSchedulerServiceBusQueueJobSet-AzSchedulerServiceBusQueueJob 修改服务总线队列作业。Modifies a Service Bus queue job.
Set-AzSchedulerServiceBusTopicJobSet-AzSchedulerServiceBusTopicJob 修改服务总线主题作业。Modifies a Service Bus topic job.
Set-AzSchedulerStorageQueueJobSet-AzSchedulerStorageQueueJob 修改存储队列作业。Modifies a Storage queue job.

有关详细信息,可以运行以下任何 cmdlet:For more details, you can run any of these cmdlets:

Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -Full

另请参阅See also