Skip to content

Commit 8f5381f

Browse files
authored
Merge pull request #111801 from v-miegge/v-miegge/how-to-create-schedule-trigger
CI 116829 - updated images and files
2 parents 120f44e + 40c33c1 commit 8f5381f

10 files changed

+26
-18
lines changed

articles/data-factory/how-to-create-schedule-trigger.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,46 @@ The following sections provide steps to create a schedule trigger in different w
2626
You can create a **schedule trigger** to schedule a pipeline to run periodically (hourly, daily, etc.).
2727

2828
> [!NOTE]
29-
> For a complete walkthrough of creating a pipeline and a schedule trigger, associating the trigger with the pipeline, and running and monitoring the pipeline, see [Quickstart: create a data factory using Data Factory UI](quickstart-create-data-factory-portal.md).
29+
> For a complete walkthrough of creating a pipeline and a schedule trigger, which associates the trigger with the pipeline, and runs and monitors the pipeline, see [Quickstart: create a data factory using Data Factory UI](quickstart-create-data-factory-portal.md).
3030
31-
1. Switch to the **Edit** tab.
31+
1. Switch to the **Edit** tab, shown with a pencil symbol.
3232

3333
![Switch to Edit tab](./media/how-to-create-schedule-trigger/switch-edit-tab.png)
34-
1. Click **Trigger** on the menu, and click **New/Edit**.
34+
35+
1. Select **Trigger** on the menu, then select **New/Edit**.
3536

3637
![New trigger menu](./media/how-to-create-schedule-trigger/new-trigger-menu.png)
37-
2. In the **Add Triggers** page, click **Choose trigger...**, and click **New**.
38+
39+
1. On the **Add Triggers** page, select **Choose trigger...**, then select **+New**.
3840

3941
![Add triggers - new trigger](./media/how-to-create-schedule-trigger/add-trigger-new-button.png)
40-
3. In the **New Trigger** page, do the following steps:
42+
43+
1. On the **New Trigger** page, do the following steps:
4144

4245
1. Confirm that **Schedule** is selected for **Type**.
43-
2. Specify the start datetime of the trigger for **Start Date (UTC)**. It's set to the current datetime by default.
44-
3. Specify **Recurrence** for the trigger. Select one of the values from the drop-down list (Every minute, Hourly, Daily, Weekly, and Monthly). Enter the multiplier in the text box. For example, if you want the trigger to run once for every 15 minutes, you select **Every Minute**, and enter **15** in the text box.
45-
4. For the **End** field, if you do not want to specify an end datetime for the trigger, select **No End**. To specify an end date time, select **On Date**, and specify end datetime, and click **Apply**. There is a cost associated with each pipeline run. If you are testing, you may want to ensure that the pipeline is triggered only a couple of times. However, ensure that there is enough time for the pipeline to run between the publish time and the end time. The trigger comes into effect only after you publish the solution to Data Factory, not when you save the trigger in the UI.
46+
1. Specify the start datetime of the trigger for **Start Date (UTC)**. It's set to the current datetime by default.
47+
1. Specify **Recurrence** for the trigger. Select one of the values from the drop-down list (Every minute, Hourly, Daily, Weekly, and Monthly). Enter the multiplier in the text box. For example, if you want the trigger to run once for every 15 minutes, you select **Every Minute**, and enter **15** in the text box.
48+
1. For the **End** field, if you do not want to specify an end datetime for the trigger, select **No End**. To specify an end date time, select **On Date**, and specify end datetime, then select **OK**. There is a cost associated with each pipeline run. If you are testing, you may want to ensure that the pipeline is triggered only a couple of times. However, ensure that there is enough time for the pipeline to run between the publish time and the end time. The trigger comes into effect only after you publish the solution to Data Factory, not when you save the trigger in the UI.
4649

4750
![Trigger settings](./media/how-to-create-schedule-trigger/trigger-settings.png)
48-
4. In the **New Trigger** window, check the **Activated** option, and click **Next**. You can use this checkbox to deactivate the trigger later.
51+
52+
1. In the **New Trigger** window, select **Yes** in the **Activated** option, then select **OK**. You can use this checkbox to deactivate the trigger later.
4953

5054
![Trigger settings - Next button](./media/how-to-create-schedule-trigger/trigger-settings-next.png)
51-
5. In the **New Trigger** page, review the warning message, and click **Finish**.
55+
56+
1. In the **New Trigger** window, review the warning message, then select **OK**.
5257

5358
![Trigger settings - Finish button](./media/how-to-create-schedule-trigger/new-trigger-finish.png)
54-
6. Click **Publish** to publish changes to Data Factory. Until you publish changes to Data Factory, the trigger does not start triggering the pipeline runs.
59+
60+
1. Select **Publish all** to publish the changes to Data Factory. Until you publish the changes to Data Factory, the trigger doesn't start triggering the pipeline runs.
5561

5662
![Publish button](./media/how-to-create-schedule-trigger/publish-2.png)
57-
8. Switch to the **Monitor** tab on the left. Click **Refresh** to refresh the list. You see the pipeline runs triggered by the scheduled trigger. Notice the values in the **Triggered By** column. If you use **Trigger Now** option, you see the manual trigger run in the list.
63+
64+
1. Switch to the **Pipeline runs** tab on the left, then select **Refresh** to refresh the list. You will see the pipeline runs triggered by the scheduled trigger. Notice the values in the **Triggered By** column. If you use the **Trigger Now** option, you will see the manual trigger run in the list.
5865

5966
![Monitor triggered runs](./media/how-to-create-schedule-trigger/monitor-triggered-runs.png)
60-
9. Click the down-arrow next to **Pipeline Runs** to switch to the **Trigger Runs** view.
67+
68+
1. Switch to the **Trigger Runs** view.
6169

6270
![Monitor trigger runs](./media/how-to-create-schedule-trigger/monitor-trigger-runs.png)
6371

@@ -107,31 +115,31 @@ This section shows you how to use Azure PowerShell to create, start, and monitor
107115
- The trigger is associated with the **Adfv2QuickStartPipeline** pipeline. To associate multiple pipelines with a trigger, add more **pipelineReference** sections.
108116
- The pipeline in the Quickstart takes two **parameters** values: **inputPath** and **outputPath**. Therefore, you pass values for these parameters from the trigger.
109117

110-
2. Create a trigger by using the **Set-AzDataFactoryV2Trigger** cmdlet:
118+
1. Create a trigger by using the **Set-AzDataFactoryV2Trigger** cmdlet:
111119

112120
```powershell
113121
Set-AzDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Name "MyTrigger" -DefinitionFile "C:\ADFv2QuickStartPSH\MyTrigger.json"
114122
```
115123

116-
3. Confirm that the status of the trigger is **Stopped** by using the **Get-AzDataFactoryV2Trigger** cmdlet:
124+
1. Confirm that the status of the trigger is **Stopped** by using the **Get-AzDataFactoryV2Trigger** cmdlet:
117125

118126
```powershell
119127
Get-AzDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Name "MyTrigger"
120128
```
121129

122-
4. Start the trigger by using the **Start-AzDataFactoryV2Trigger** cmdlet:
130+
1. Start the trigger by using the **Start-AzDataFactoryV2Trigger** cmdlet:
123131

124132
```powershell
125133
Start-AzDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Name "MyTrigger"
126134
```
127135

128-
5. Confirm that the status of the trigger is **Started** by using the **Get-AzDataFactoryV2Trigger** cmdlet:
136+
1. Confirm that the status of the trigger is **Started** by using the **Get-AzDataFactoryV2Trigger** cmdlet:
129137

130138
```powershell
131139
Get-AzDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Name "MyTrigger"
132140
```
133141

134-
6. Get the trigger runs in Azure PowerShell by using the **Get-AzDataFactoryV2TriggerRun** cmdlet. To get the information about the trigger runs, execute the following command periodically. Update the **TriggerRunStartedAfter** and **TriggerRunStartedBefore** values to match the values in your trigger definition:
142+
1. Get the trigger runs in Azure PowerShell by using the **Get-AzDataFactoryV2TriggerRun** cmdlet. To get the information about the trigger runs, execute the following command periodically. Update the **TriggerRunStartedAfter** and **TriggerRunStartedBefore** values to match the values in your trigger definition:
135143

136144
```powershell
137145
Get-AzDataFactoryV2TriggerRun -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -TriggerName "MyTrigger" -TriggerRunStartedAfter "2017-12-08T00:00:00" -TriggerRunStartedBefore "2017-12-08T01:00:00"
6.99 KB
Loading
117 KB
Loading
125 KB
Loading
9.54 KB
Loading
21.5 KB
Loading
46 KB
Loading
30.2 KB
Loading
11.1 KB
Loading
64.9 KB
Loading

0 commit comments

Comments
 (0)