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 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.

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