MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.23k stars 21.39k forks source link

Azure Logic Apps - Schedule weekday only #24233

Closed AlissonRS closed 5 years ago

AlissonRS commented 5 years ago

I'm trying Azure Logic Apps, but I can't figure how I can schedule it to run only on weekdays. The docs have a "Show advanced options" that displays a lot of configurations (including what I'm looking for), however this is not available to me, as you may see here:

image

...and this "Add new parameter" button only has two parameters:

Is there any other way I can configure a recurrence schedule, for instance to run twice a day, (e.g every work day at 9am and 5pm)?

Thanks!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ecfan commented 5 years ago

Hi @AlissonRS, thanks for your question! You can select specific days when you set Frequency to Week as described in the Trigger details section:

image

And then to set the specific times of day, use At these hours and At these minutes, which appear only after you select Week or Day:

image

AlissonRS commented 5 years ago

@ecfan thanks for your answer, that was exactly what I was looking for (sorry, I should have looked a bit further before asking). I really appreciate it.

ecfan commented 5 years ago

@AlissonRS You're welcome! I'll now ask the team to close this issue. If you have other questions, please feel free to open another issue. Thanks!

please-close

boltlol commented 5 years ago

Would it be possible to add a cronjob syntax to this at least on minutes? Writing every minute you want it to run is cumbersome. 3,6,9,12,15 etc...

Also, in a schedule like this, possible to run each 0,15,30,45 seconds?

image

ecfan commented 5 years ago

Hi @boltlol, thanks for your suggestion! Are you requesting to add this syntax as a feature? If yes, please submit your request at the Logic Apps product feedback site so the team can review:

https://feedback.azure.com/forums/287593-logic-apps

Thanks!

chasdso commented 4 years ago

@ecfan I have a similar need but a tad more complex. We have a complex ADF pipeline run that ingests data, and at conclusion I have logicapps that fire to rebuild the Analysis Services Models. All days except Saturday mornings, I need the logicapps to make one call to the AAS services (has a partition call), then on Saturday mornings, I need it to do a different AAS refresh call (full refresh on models). The trick is - I don't know the time it will run, because it needs to run at the end of the ADF completion. Is there a way within the logicapp itself (not a trigger) to do this and determine what day it is and make a loop based on the day? Thanks

ecfan commented 4 years ago

Hi @chasdso, thanks for reaching out! Could you use the dayOfWeek() function in an expression to determine the current day?

chasdso commented 4 years ago

@ecfan woot! Perfect thank you! Overlooked it -