You can use a time-based trigger :
https://learn.microsoft.com/en-us/azure/data-factory/concepts-pipeline-execution-triggers
Step 1: Create a New Trigger
- Open Azure Data Factory: Go to the Azure portal and navigate to your Data Factory instance.
- Author & Monitor: Click on the "Author & Monitor" tile to open the Data Factory UI.
- Create a New Trigger:
- In the left-hand pane, go to the Manage section (the wrench icon).
- Under Triggers, click the New button.
Step 2: Configure the Trigger
- Basic Settings:
- Name: Give your trigger a descriptive name, such as
WeeklyTrigger
. - Type: Set the trigger type to Schedule.
- Name: Give your trigger a descriptive name, such as
- Schedule Settings:
- Start Date: Set the start date and time when you want the first run to occur.
- Recurrence: Set the recurrence to
Week
and choose the interval (e.g., every 1 week). - Days of the Week: Select the day of the week you want the pipeline to run.
- End Date: Optionally, set an end date if you want the trigger to stop after a certain period.
Step 3: Associate the Trigger with a Pipeline
- Select Pipeline: Go to the Author tab (pen icon) in the left-hand pane and select the pipeline you want to run on a schedule.
- Add Trigger:
- At the top of the pipeline canvas, click on Add Trigger and select New/Edit.
- Choose the trigger you created (
WeeklyTrigger
). - Configure any additional parameters if your pipeline requires them.
- Click OK to save the trigger to your pipeline.
Step 4: Publish All
After creating and configuring the trigger, don't forget to click Publish All to deploy your changes.
Step 5: Monitor the Trigger
You can monitor the execution of your pipeline by navigating to the Monitor section in the Data Factory UI. Here you can see when the trigger executes, the success/failure of the pipeline runs, and more.