MicrosoftDocs / azure-docs

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

Trigger only once per month on last day of month #37616

Closed Stoumfou closed 3 years ago

Stoumfou commented 5 years ago

I have created a task in LogicApps with this trigger : "triggers": { "Recurrence": { "recurrence": { "frequency": "Month", "interval": 1, "schedule": { "minutes": [0], "hours": [22], "monthDays": [-1] }, "timeZone": "Romance Standard Time" }, "type": "Recurrence" } }

And nothing append on 31/07/2019 22:00:00. Are you sure Azure Logic Apps triggers support the AzureScheduler schema ? Or it's just bug ? Or my triggers is bad ? It's crucial for my business.

To temporary fix this i replace by :

"triggers": { "Recurrence": { "recurrence": { "frequency": "Month", "interval": 1, "startTime": "2019-08-31T22:00:00", "timeZone": "Romance Standard Time" }, "type": "Recurrence" } }

But i suspect this doesn't work for month which doesn't end on 31, like september.

I saw this https://github.com/MicrosoftDocs/azure-docs/issues/26707, and i understand the UI doesn't support this but the code neither !

A little more thing, the UI can be perturbed : I create a LogicApps with in code view : "schedule": { "minutes": [0], "hours": [22], "monthDays": [-1] }, I save, go back to "Overview" and when i click on "Edit" (this go in IU Designer) => I click in "Code view" => And the code are automatically changed to : "schedule": { "monthDays": [ -1 ] }, and Logic Apps Designer ask me save my changes ! While i did not changed anything. I click on "CodeView" edit my code and remove "minutes" and "hours". It's easy to reproduce.


Document Details

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

KrishnaG-MSFT commented 5 years ago

@Stoumfou Thanks for your comment. The feedback has been shared with the content owner for further review.

ecfan commented 3 years ago

The Azure Logic Apps docs have been updated with an example to trigger once on the last day of the month. This schedule must be set up in the underlying Recurrence trigger definition as the designer doesn't have a way to achieve this scenario:

"triggers": {
    "Recurrence": {
        "recurrence": {
            "frequency": "Month",
            "interval": 1,
            "schedule": {
                "monthDays": [-1]
            }
        },
        "type": "Recurrence"
    }
}

Update should be available on 07/20/2021 after 11 AM Pacific Time:

https://docs.microsoft.com/azure/connectors/connectors-native-recurrence#workflow-definition---recurrence

please-close