使用 Azure 逻辑应用计划和运行重复性自动任务、过程与工作流Schedule and run recurring automated tasks, processes, and workflows with Azure Logic Apps

逻辑应用可帮助你创建自动化的重复性任务与过程并按计划运行。Logic Apps helps you create and run automated recurring tasks and processes on a schedule. 创建使用内置重复触发器或滑动窗口触发器(计划类型的触发器)启动的逻辑应用工作流,以后可以立即运行或者按重复间隔运行任务。By creating a logic app workflow that starts with a built-in Recurrence trigger or Sliding Window trigger, which are Schedule-type triggers, you can run tasks immediately, at a later time, or on a recurring interval. 可以调用 Azure 内部和外部的服务(例如 HTTP 或 HTTPS 终结点)、将消息发送到 Azure 存储和 Azure 服务总线等 Azure 服务,或者将文件上传到文件共享。You can call services inside and outside Azure, such as HTTP or HTTPS endpoints, post messages to Azure services such as Azure Storage and Azure Service Bus, or get files uploaded to a file share. 使用重复触发器,还可以设置复杂的计划,以及运行任务的详细重复周期。With the Recurrence trigger, you can also set up complex schedules and advanced recurrences for running tasks. 若要详细了解内置计划触发器和操作,请参阅计划触发器计划操作To learn more about the built-in Schedule triggers and actions, see Schedule triggers and Schedule actions.

提示

无需为每个计划的作业单独创建逻辑应用,也无需占用每个区域和订阅的工作流限制配额,即可计划和运行重复性工作负荷。You can schedule and run recurring workloads without creating a separate logic app for each scheduled job and running into the limit on workflows per region and subscription. 可以使用 Azure 快速入门模板:逻辑应用作业计划程序创建的逻辑应用模式。Instead, you can use the logic app pattern that's created by the Azure QuickStart template: Logic Apps job scheduler.

逻辑应用作业计划程序模板会创建一个调用 TimerJob 逻辑应用的 CreateTimerJob 逻辑应用。The Logic Apps job scheduler template creates a CreateTimerJob logic app that calls a TimerJob logic app. 然后,你可以通过发出 HTTP 请求并传递一个计划作为请求的输入,以 API 的形式调用 CreateTimerJob 逻辑应用。You can then call the CreateTimerJob logic app as an API by making an HTTP request and passing a schedule as input for the request. 每次调用 CreateTimerJob 逻辑应用时,都会调用 TimerJob 逻辑应用,这会创建一个根据指定计划持续运行的、或者一直运行到达到指定限制的新 TimerJob 实例。Each call to the CreateTimerJob logic app also calls the TimerJob logic app, which creates a new TimerJob instance that continuously runs based on the specified schedule or until meeting a specified limit. 这样,便可以运行任意数目的 TimerJob 实例,而无需担心工作流限制,因为实例不是单独的逻辑应用工作流定义或资源。That way, you can run as many TimerJob instances as you want without worrying about workflow limits because instances aren't individual logic app workflow definitions or resources.

此列表显示了可以使用计划内置触发器运行的一些示例任务:This list shows some example tasks that you can run with the Schedule built-in triggers:

  • 获取内部数据,例如每天运行某个 SQL 存储过程。Get internal data, such as run a SQL stored procedure every day.

  • 获取外部数据,例如每隔 15 分钟从 NOAA 提取天气报告。Get external data, such as pull weather reports from NOAA every 15 minutes.

  • 发送报告数据,例如通过电子邮件发送过去一周内超过特定金额的所有订单的摘要。Send report data, such as email a summary for all orders greater than a specific amount in the past week.

  • 处理数据,例如在每个工作日的非高峰时间压缩当日的已上传图像。Process data, such as compress today's uploaded images every weekday during off-peak hours.

  • 清除数据,例如删除超过三个月的所有推文。Clean up data, such as delete all tweets older than three months.

  • 存档数据,例如在未来 9 个月的每天凌晨 1:00 将发票推送到备份服务。Archive data, such as push invoices to a backup service at 1:00 AM every day for the next nine months.

在下一操作运行之前,还可以使用计划内置操作来暂停工作流,例如:You can also use the Schedule built-in actions to pause your workflow before the next action runs, for example:

  • 等到工作日通过电子邮件发送状态更新。Wait until a weekday to send a status update over email.

  • 在恢复和检索结果前,延迟工作流直到 HTTP 调用有时间完成。Delay the workflow until an HTTP call has time to finish before resuming and retrieving the result.

本文介绍计划内置触发器和操作的功能。This article describes the capabilities for the Schedule built-in triggers and actions.

计划触发器Schedule triggers

可以使用重复触发器或滑动窗口触发器(不与任何特定服务或系统关联)来启动逻辑应用工作流。You can start your logic app workflow by using the Recurrence trigger or Sliding Window trigger, which isn't associated with any specific service or system. 这些触发器基于指定的重复周期来启动并运行工作流,你可以在该周期中选择时间间隔和频率(例如,秒数、分钟数、小时数、天数、周数或月数)。These triggers start and run your workflow based on your specified recurrence where you select the interval and frequency, such as the number of seconds, minutes, hours, days, weeks, or months. 还可以设置开始日期和时间以及时区。You can also set the start date and time as well as the time zone. 每当某个触发器激发时,逻辑应用服务将为你的逻辑应用创建并运行一个新的工作流实例。Each time that a trigger fires, Logic Apps creates and runs a new workflow instance for your logic app.

下面是这些触发器之间的差异:Here are the differences between these triggers:

  • 重复周期:根据指定的计划按固定的时间间隔运行工作流。Recurrence: Runs your workflow at regular time intervals based on your specified schedule. 如果错过了重复周期(例如,由于中断或禁用工作流而错过),则重复触发器不会处理错过的重复周期,但会根据下一个计划的时间间隔重启重复周期。If recurrences are missed, for example, due to disruptions or disabled workflows, the Recurrence trigger doesn't process the missed recurrences but restarts recurrences with the next scheduled interval. 可以指定开始日期和时间以及时区。You can specify a start date and time as well as the time zone. 如果选择“天”,则可以指定该日期的小时,以及该小时的分钟,例如,每日 2:30。If you select "Day", you can specify hours of the day and minutes of the hour, for example, every day at 2:30. 如果选择“周”,则还可以选择星期,例如“星期三”和“星期六”。If you select "Week", you can also select days of the week, such as Wednesday and Saturday. 有关详细信息,请参阅使用重复触发器创建、计划和运行重复性任务与工作流For more information, see Create, schedule, and run recurring tasks and workflows with the Recurrence trigger.

  • 滑动窗口:按定期时间间隔运行工作流来处理连续区块中的数据。Sliding Window: Runs your workflow at regular time intervals that handle data in continuous chunks. 如果错过了重复周期(例如,由于中断或禁用工作流而错过),则滑动窗口触发器会返回并处理错过的重复周期。If recurrences are missed, for example, due to disruptions or disabled workflows, the Sliding Window trigger goes back and processes the missed recurrences. 可以指定开始日期和时间以及时区,并可以指定一个持续时间来延迟工作流中的每个重复周期。You can specify a start date and time, time zone, and a duration to delay each recurrence in your workflow. 此触发器不支持高级计划,例如,一天中的特定小时,一小时中的特定分钟,以及一星期中的特定几天。This trigger doesn't support advanced schedules, for example, specific hours of the day, minutes of the hour, and days of the week. 有关详细信息,请参阅使用滑动窗口触发器创建、计划和运行重复性任务与工作流For more information, see Create, schedule, and run recurring tasks and workflows with the Sliding Window trigger.

计划操作Schedule actions

在逻辑应用工作流中指定任何操作后,可以使用“延迟”和“延迟到”操作来使工作流等到下一个操作运行为止。After any action in your logic app workflow, you can use the Delay and Delay Until actions to make your workflow wait before the next action runs.

  • 延迟:按指定的时间单位数(例如秒数、分钟数、小时数、天数、周数或月数)等待运行下一操作。Delay: Wait to run the next action for the specified number of time units, such as seconds, minutes, hours, days, weeks, or months. 有关详细信息,请参阅延迟工作流中的下一操作For more information, see Delay the next action in workflows.

  • 延迟截止时间:在指定的日期和时间之前等待运行下一操作。Delay until: Wait to run the next action until the specified date and time. 有关详细信息,请参阅延迟工作流中的下一操作For more information, see Delay the next action in workflows.

开始日期和时间的模式Patterns for start date and time

下面这些模式将演示如何使用开始日期和时间控制重复计划,以及逻辑应用服务如何运行这些重复计划:Here are some patterns that show how you can control recurrence with the start date and time, and how the Logic Apps service runs these recurrences:

开始时间Start time 不按计划循环Recurrence without schedule 按计划重复(仅适用于重复触发器)Recurrence with schedule (Recurrence trigger only)
{无}{none} 即时运行第一个工作负荷。Runs the first workload instantly.

基于上次运行时间运行将来的工作负荷。Runs future workloads based on the last run time.

即时运行第一个工作负荷。Runs the first workload instantly.

基于指定的计划运行将来的工作负荷。Runs future workloads based on the specified schedule.

开始时间在过去Start time in the past 重复触发器:基于指定的开始时间计算运行时间,并丢弃过去的运行时间。Recurrence trigger: Calculates run times based on the specified start time and discards past run times. 在下一个将来运行时间运行第一个工作负荷。Runs the first workload at the next future run time.

基于上次运行时间的计算结果运行将来的工作负荷。Runs future workloads based on calculations from the last run time.

滑动窗口触发器:基于指定的开始时间计算运行时间,并遵循过去的运行时间。Sliding Window trigger: Calculates run times based on the specified start time and honors past run times.

基于指定的开始时间的计算结果运行将来的工作负荷。Runs future workloads based on calculations from the specified start time.

有关详细说明,请参阅此表格后面的示例。For more explanation, see the example following this table.

基于从开始时间计算的计划,在不早于开始时间的时间运行第一个工作负荷。Runs the first workload no sooner than the start time, based on the schedule calculated from the start time.

基于指定的计划运行将来的工作负荷。Runs future workloads based on the specified schedule.

注意: 如果针对计划指定了定期模式,但没有为该计划指定小时或分钟,则将来的运行时间会分别使用小时或分钟来计算(从首次运行时间开始算起)。Note: If you specify a recurrence with a schedule, but don't specify hours or minutes for the schedule, then future run times are calculated using the hours or minutes, respectively, from the first run time.

开始时间在当前或将来Start time at present or in the future 在指定的开始时间运行第一个工作负荷。Runs the first workload at the specified start time.

基于上次运行时间的计算结果运行将来的工作负荷。Runs future workloads based on calculations from the last run time.

基于从开始时间计算的计划,在不早于开始时间的时间运行第一个工作负荷。Runs the first workload no sooner than the start time, based on the schedule calculated from the start time.

基于指定的计划运行将来的工作负荷。Runs future workloads based on the specified schedule.

注意: 如果针对计划指定了定期模式,但没有为该计划指定小时或分钟,则将来的运行时间会分别使用小时或分钟来计算(从首次运行时间开始算起)。Note: If you specify a recurrence with a schedule, but don't specify hours or minutes for the schedule, then future run times are calculated using the hours or minutes, respectively, from the first run time.

重要

如果重复周期未指定高级计划选项,则将来的重复周期将基于上次运行时间。When recurrences don't specify advanced scheduling options, future recurrences are based on the last run time. 这些重复周期的开始时间可能会因存储调用期间的延迟等因素而发生偏移。The start times for these recurrences might drift due to factors such as latency during storage calls. 为了确保逻辑应用不会错过重复周期,特别是当频率为几天或更长的时间时,请使用以下选项之一:To make sure that your logic app doesn't miss a recurrence, especially when the frequency is in days or longer, use one of these options:

  • 提供重复周期的开始时间。Provide a start time for the recurrence.

  • 使用“在这些小时”和“在这些分钟”属性指定何时运行重复周期的小时和分钟。Specify the hours and minutes for when to run the recurrence by using the At these hours and At these minutes properties.

  • 使用滑动窗口触发器,而不是使用重复触发器。Use the Sliding Window trigger, rather than the Recurrence trigger.

指定了过去开始时间和重复周期但未指定计划的示例Example for past start time and recurrence but no schedule

假设当前日期和时间是 2017 年 9 月 8 日下午 1:00。Suppose the current date and time is September 8, 2017 at 1:00 PM. 将开始日期和时间指定为已过去的 2017 年 9 月 7 日下午 2:00,重复周期为每隔两天运行一次。You specify the start date and time as September 7, 2017 at 2:00 PM, which is in the past, and a recurrence that runs every two days.

开始时间Start time 当前时间Current time 定期Recurrence 计划Schedule
2017-09-07T14:00:00Z2017-09-07T14:00:00Z
(2017-09-07 下午 2:00)(2017-09-07 at 2:00 PM)
2017-09-08T13:00:00Z2017-09-08T13:00:00Z
(2017-09-08 下午 1:00)(2017-09-08 at 1:00 PM)
每隔两天Every two days {无}{none}

对于重复触发器,逻辑应用引擎会基于开始时间计算运行时间,丢弃过去的运行时间,为首次运行使用下一个将来开始时间,并基于上次运行时间计算将来的运行。For the Recurrence trigger, the Logic Apps engine calculates run times based on the start time, discards past run times, uses the next future start time for the first run, and calculates future runs based on the last run time.

下面是此重复周期的大致形式:Here's how this recurrence looks:

开始时间Start time 首次运行时间First run time 将来的运行时间Future run times
2017-09-07 的 2:00 PM2017-09-07 at 2:00 PM 2017-09-09 的 2:00 PM2017-09-09 at 2:00 PM 2017-09-11 的 2:00 PM2017-09-11 at 2:00 PM
2017-09-13 的 2:00 PM2017-09-13 at 2:00 PM
2017-09-15 的 2:00 PM2017-09-15 at 2:00 PM
依此类推...and so on...

因此,不管在过去的多长期限内指定了开始时间(例如,2017-09-05 下午 2:00,或 2017-09-01 下午 2:00),首次运行始终使用下一个将来的开始时间。So, no matter how far in the past you specify the start time, for example, 2017-09-05 at 2:00 PM or 2017-09-01 at 2:00 PM, your first run always uses the next future start time.

对于滑动窗口触发器,逻辑应用引擎会基于开始时间计算运行时间,遵循过去的运行时间,为首次运行使用该开始时间,并基于该开始时间计算将来的运行。For the Sliding Window trigger, the Logic Apps engine calculates run times based on the start time, honors past run times, uses the start time for the first run, and calculates future runs based on the start time.

下面是此重复周期的大致形式:Here's how this recurrence looks:

开始时间Start time 首次运行时间First run time 将来的运行时间Future run times
2017-09-07 的 2:00 PM2017-09-07 at 2:00 PM 2017-09-07 的 2:00 PM2017-09-07 at 2:00 PM 2017-09-09 的 2:00 PM2017-09-09 at 2:00 PM
2017-09-11 的 2:00 PM2017-09-11 at 2:00 PM
2017-09-13 的 2:00 PM2017-09-13 at 2:00 PM
2017-09-15 的 2:00 PM2017-09-15 at 2:00 PM
依此类推...and so on...

因此,不管在过去的多长期限内指定了开始时间(例如,2017-09-05 下午 2:00,或 2017-09-01 下午 2:00),首次运行始终使用指定的开始时间。So, no matter how far in the past you specify the start time, for example, 2017-09-05 at 2:00 PM or 2017-09-01 at 2:00 PM, your first run always uses the specified start time.

示例重复周期Example recurrences

下面是可为支持上述选项的触发器设置的各种示例重复周期:Here are various example recurrences that you can set up for the triggers that support the options:

触发器Trigger 定期Recurrence 时间间隔Interval 频率Frequency 开始时间Start time 在这些日期On these days 在这些小时At these hours 在这些分钟At these minutes 注意Note
重复Recurrence,
滑动窗口Sliding Window
每隔 15 分钟运行(没有开始日期和时间)Run every 15 minutes (no start date and time) 1515 MinuteMinute {无}{none} {不可用}{unavailable} {无}{none} {无}{none} 此计划立即启动,然后根据上次运行时间计算将来的重复周期。This schedule starts immediately, then calculates future recurrences based on the last run time.
重复Recurrence,
滑动窗口Sliding Window
每隔 15 分钟运行(有开始日期和时间)Run every 15 minutes (with start date and time) 1515 MinuteMinute startDateTstartTimeZstartDateTstartTimeZ {不可用}{unavailable} {无}{none} {无}{none} 此计划不会在指定的开始日期和时间之前启动,将根据上次运行时间计算将来的重复周期。This schedule doesn't start any sooner than the specified start date and time, then calculates future recurrences based on the last run time.
重复Recurrence,
滑动窗口Sliding Window
每隔一小时整点运行(有开始日期和时间)Run every hour, on the hour (with start date and time) 11 HourHour startDateThh:00:00ZstartDateThh:00:00Z {不可用}{unavailable} {无}{none} {无}{none} 此计划不会在指定的开始日期和时间之前启动。This schedule doesn't start any sooner than the specified start date and time. 将来的重复计划每隔一小时在第“00”分钟(基于开始时间计算)运行。Future recurrences run every hour at the "00" minute mark, which is calculated from the start time.

如果频率为“周”或“月”,则此计划只会分别在每周的一个星期日期或每月的一个日期运行。If the frequency is "Week" or "Month", this schedule respectively runs only one day per week or one day per month.

重复Recurrence,
滑动窗口Sliding Window
每天每隔一小时运行(没有开始日期和时间)Run every hour, every day (no start date and time) 11 HourHour {无}{none} {不可用}{unavailable} {无}{none} {无}{none} 此计划立即启动,并根据上次运行时间计算将来的重复周期。This schedule starts immediately and calculates future recurrences based on the last run time.

如果频率为“周”或“月”,则此计划只会分别在每周的一个星期日期或每月的一个日期运行。If the frequency is "Week" or "Month", this schedule respectively runs only one day per week or one day per month.

重复Recurrence,
滑动窗口Sliding Window
每天每隔一小时运行(有开始日期和时间)Run every hour, every day (with start date and time) 11 HourHour startDateTstartTimeZstartDateTstartTimeZ {不可用}{unavailable} {无}{none} {无}{none} 此计划不会在指定的开始日期和时间之前启动,将根据上次运行时间计算将来的重复周期。This schedule doesn't start any sooner than the specified start date and time, then calculates future recurrences based on the last run time.

如果频率为“周”或“月”,则此计划只会分别在每周的一个星期日期或每月的一个日期运行。If the frequency is "Week" or "Month", this schedule respectively runs only one day per week or one day per month.

重复Recurrence,
滑动窗口Sliding Window
每隔一小时在整点过后的第 15 分钟运行(有开始日期和时间)Run every 15 minutes past the hour, every hour (with start date and time) 11 HourHour startDateT00:15:00ZstartDateT00:15:00Z {不可用}{unavailable} {无}{none} {无}{none} 此计划不会在指定的开始日期和时间之前启动。This schedule doesn't start any sooner than the specified start date and time. 将来的重复计划将在第“15”分钟(基于开始时间计算)运行,即凌晨 00:15、1:15、2:15 等。Future recurrences run at the "15" minute mark, which is calculated from the start time, so at 00:15 AM, 1:15 AM, 2:15 AM, and so on.
定期Recurrence 每隔一小时在整点过后的第 15 分钟运行(没有开始日期和时间)Run every 15 minutes past the hour, every hour (no start date and time) 11 日期Day {无}{none} {不可用}{unavailable} 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、16、17、18、19、20、21、22、230, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 1515 此计划在 00:15 AM、1:15 AM、2:15 AM 等有规律的时间运行。This schedule runs at 00:15 AM, 1:15 AM, 2:15 AM, and so on. 此外,此计划相当于频率为“小时”且开始时间为“15”分钟。Also, this schedule is equivalent to a frequency of "Hour" and a start time with "15" minutes.
定期Recurrence 每隔 15 分钟在指定的分钟数(无开始日期和时间)运行。Run every 15 minutes at the specified minute marks (no start date and time). 11 日期Day {无}{none} {不可用}{unavailable} 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、16、17、18、19、20、21、22、230, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 0、15、30、450, 15, 30, 45 此计划在下一个指定的 15 分钟标记之前不会启动。This schedule doesn't start until the next specified 15-minute mark.
定期Recurrence 每天上午 8 点加上保存逻辑应用时的分钟标记运行Run daily at 8 AM plus the minute-mark from when you save your logic app 11 日期Day {无}{none} {不可用}{unavailable} 88 {无}{none} 如果没有开始日期和时间,此计划将基于你保存逻辑应用(PUT 操作)的时间运行。Without a start date and time, this schedule runs based on the time when you save the logic app (PUT operation).
定期Recurrence 每天上午 8:00 运行(有开始日期和时间)Run daily at 8:00 AM (with start date and time) 11 日期Day startDateT08:00:00ZstartDateT08:00:00Z {不可用}{unavailable} {无}{none} {无}{none} 此计划不会在指定的开始日期和时间之前启动。This schedule doesn't start any sooner than the specified start date and time. 将来每天上午 8:00 运行。Future occurrences run daily at 8:00 AM.
定期Recurrence 每日上午 8:00 运行(无开始日期和时间)Run daily at 8:00 AM (no start date and time) 11 日期Day {无}{none} {不可用}{unavailable} 88 0000 此计划每天上午 8:00 运行。This schedule runs at 8:00 AM every day.
定期Recurrence 每天上午 8:00 和下午 4:00 运行Run daily at 8:00 AM and 4:00 PM 11 日期Day {无}{none} {不可用}{unavailable} 8, 168, 16 00
定期Recurrence 每天上午 8:30、上午 8:45、下午 4:30 和下午 4:45 运行Run daily at 8:30 AM, 8:45 AM, 4:30 PM, and 4:45 PM 11 日期Day {无}{none} {不可用}{unavailable} 8, 168, 16 30, 4530, 45
定期Recurrence 在每个星期六下午 5:00 运行(没有开始日期和时间)Run every Saturday at 5:00 PM (no start date and time) 11 WeekWeek {无}{none} “星期六”"Saturday" 1717 00 此计划在每个星期六的 5:00 PM 运行。This schedule runs every Saturday at 5:00 PM.
定期Recurrence 在每个星期六下午 5:00 运行(有开始日期和时间)Run every Saturday at 5:00 PM (with start date and time) 11 WeekWeek startDateT17:00:00ZstartDateT17:00:00Z “星期六”"Saturday" {无}{none} {无}{none} 此计划不会在指定的开始日期和时间(在本例中为 2017 年 9 月 9 日 5:00 PM)之前启动。This schedule doesn't start any sooner than the specified start date and time, in this case, September 9, 2017 at 5:00 PM. 将来的定期计划在每个星期六的 5:00 PM 运行。Future recurrences run every Saturday at 5:00 PM.
定期Recurrence 每周二、周四下午 5 点加上保存逻辑应用时的分钟标记运行Run every Tuesday, Thursday at 5 PM plus the minute-mark from when you save your logic app 11 WeekWeek {无}{none} “星期二”、“星期四”"Tuesday", "Thursday" 1717 {无}{none}
定期Recurrence 在工作时间每隔一小时运行。Run every hour during working hours. 11 WeekWeek {无}{none} 选择除星期六和星期日以外的所有星期日期。Select all days except Saturday and Sunday. 选择所需的日期小时。Select the hours of the day that you want. 选择所需的任何小时分钟。Select any minutes of the hour that you want. 例如,如果工作时间为上午 8:00 到下午 5:00,则选择“8、9、10、11、12、13、14、15、16、17”作为该天中的小时,并加上“0”作为该小时的分钟。For example, if your working hours are 8:00 AM to 5:00 PM, then select "8, 9, 10, 11, 12, 13, 14, 15, 16, 17" as the hours of the day plus "0" as the minutes of the hour.
定期Recurrence 在周末每隔一个星期日期运行一次Run once every day on weekends 11 WeekWeek {无}{none} “星期六”、“星期日”"Saturday", "Sunday" 选择所需的日期小时。Select the hours of the day that you want. 选择适当的任何小时分钟。Select any minutes of the hour as appropriate. 此计划根据指定的计划在每个星期六和星期日运行。This schedule runs every Saturday and Sunday at the specified schedule.
定期Recurrence 仅每两周在星期一每隔 15 分钟运行Run every 15 minutes biweekly on Mondays only 22 WeekWeek {无}{none} “星期一”"Monday" 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、16、17、18、19、20、21、22、230, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 0、15、30、450, 15, 30, 45 此计划按每个 15 分钟标记每隔两周在星期一运行。This schedule runs every other Monday at every 15-minute mark.
定期Recurrence 每月运行Run every month 11 月份Month startDateTstartTimeZstartDateTstartTimeZ {不可用}{unavailable} {不可用}{unavailable} {不可用}{unavailable} 此计划不会在指定的开始日期和时间之前启动,将基于开始日期和时间计算将来的重复周期。This schedule doesn't start any sooner than the specified start date and time and calculates future recurrences on the start date and time. 如果未指定开始日期和时间,则此计划使用创建日期和时间。If you don't specify a start date and time, this schedule uses the creation date and time.
定期Recurrence 在每个月每隔一小时运行一天Run every hour for one day per month 11 月份Month {参阅备注}{see note} {不可用}{unavailable} 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、16、17、18、19、20、21、22、230, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 {参阅备注}{see note} 如果未指定开始日期和时间,则此计划使用创建日期和时间。If you don't specify a start date and time, this schedule uses the creation date and time. 若要控制定期计划的分钟,请指定小时分钟和开始时间,或使用创建时间。To control the minutes for the recurrence schedule, specify the minutes of the hour, a start time, or use the creation time. 例如,如果开始时间或创建时间为 8:25 AM,则此计划在 8:25 AM、9:25 AM、10:25 AM 等有规律的时间运行。For example, if the start time or creation time is 8:25 AM, this schedule runs at 8:25 AM, 9:25 AM, 10:25 AM, and so on.

仅运行一次Run one time only

如果你将来只想运行逻辑应用一次,可以使用“计划程序:运行一次作业”模板。If you want to run your logic app only at one time in the future, you can use the Scheduler: Run once jobs template. 创建新的逻辑应用之后、打开逻辑应用设计器之前,请从“模板”部分下的“类别”列表中选择“计划”,然后选择以下模板: After you create a new logic app but before opening the Logic Apps Designer, under the Templates section, from the Category list, select Schedule, and then select this template:

选择“计划程序:运行一次作业”模板

或者,可以使用“收到 HTTP 请求时 - 请求”触发器启动逻辑应用,并将开始时间作为触发器的参数传递。Or, if you can start your logic app with the When a HTTP request is received - Request trigger, and pass the start time as a parameter for the trigger. 对于第一个操作,请使用“延迟截止时间 - 计划”操作,并提供开始运行下一操作的时间。For the first action, use the Delay until - Schedule action, and provide the time for when the next action starts running.

后续步骤Next steps