sqlenthusiast
sqlenthusiast

Reputation: 185

Trigger Azure Data Factory on a specific date avoiding WEEKEND

I have an Azure Data Factory pipeline which needs to trigger on the 25th of each month.

However, if the 25th falls on a weekend day (Saturday and Sunday) then the trigger should run on the Friday before the weekend.

I would really appreciate any help on this.

Upvotes: 1

Views: 2155

Answers (1)

Himanshu Kumar Sinha
Himanshu Kumar Sinha

Reputation: 1806

We will have to create a two triggers

TRG1 1 : With the below Schedule object . read more here

        "schedule": { "weekDays":["monday", "tuesday", "wednesday", "thursday", "friday"],
            "monthDays": [
                25
            ]
        }

TRG 2

        "schedule": { "weekDays":["friday"],
            "monthDays": [
                24
            ]
        }

Upvotes: 1

Related Questions