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


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.

计划程序在 Azure 门户中不再可用,但 REST APIAzure 计划程序 PowerShell cmdlet 目前仍可用,以便你可以管理作业和作业集合。Scheduler is no longer available in the Azure portal, but the REST API and Azure Scheduler PowerShell cmdlets remain available at this time so that you can manage your jobs and job collections.

若要编写脚本以创建和管理计划程序作业和作业集合,可以使用 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 资源管理器 cmdlet 的详细信息,请参阅将 Azure PowerShell 与 Azure 资源管理器配合使用For more information about Azure Resource Manager cmdlets, see Using Azure PowerShell with Azure Resource Manager.


本文已经过更新,以便使用 Azure Az PowerShell 模块。This article has been updated to use the Azure Az PowerShell module. 若要与 Azure 交互,建议使用的 PowerShell 模块是 Az PowerShell 模块。The Az PowerShell module is the recommended PowerShell module for interacting with Azure. 若要开始使用 Az PowerShell 模块,请参阅安装 Azure PowerShellTo get started with the Az PowerShell module, see Install Azure PowerShell. 若要了解如何迁移到 Az PowerShell 模块,请参阅 将 Azure PowerShell 从 AzureRM 迁移到 AzTo learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az.

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

后续步骤Next steps