|
73 | 73 |
|
74 | 74 | :::image type="content" source="media/webjobs-create/add-webjob.png" alt-text="Screenshot that shows how to add a WebJob in an App Service app in the portal (scheduled WebJob).":::
|
75 | 75 |
|
76 |
| -1. Fill in the **Add WebJob** settings as specified in the table, then select **Create Webjob**. |
| 76 | +1. Fill in the **Add WebJob** settings as specified in the table, then select **Create Webjob**. For **File Upload**, be sure to select the .zip file you downloaded earlier in the [Download the sample WebJob](#download-the-sample-webjob) section. |
77 | 77 |
|
78 | 78 | :::image type="content" source="media/webjobs-create/configure-new-scheduled-webjob.png" alt-text="Screenshot that shows how to configure a scheduled WebJob in an App Service app.":::
|
79 | 79 |
|
80 | 80 | | Setting | value | Description |
|
81 | 81 | | ------------ | ----------------- | ------------ |
|
82 |
| - | **Name** | myScheduledWebJob | A name that is unique within an App Service app. Must start with a letter or a number and must not contain special characters other than "-" and "_". | |
83 |
| - | **File Upload** | Python-webjob.zip | A *.zip* file that contains your executable or script file and any supporting files needed to run the program or script. The supported executable or script file types are listed in the supported file types section. | |
84 |
| - | **Type** | Scheduled | Specifies when the WebJob runs. Choose `Scheduled` to run based on a CRON expression. | |
85 |
| - | **Triggers** | Scheduled | Ensure Always On is enabled for the schedule to work reliably. This setting is available in Basic, Standard, and Premium tiers.| |
| 82 | + | **Name** | webjob | The WebJob name. Must start with a letter or a number and must not contain special characters other than "-" and "_". | |
| 83 | + | **File Upload** | App-Service-Python-WebJobs-Quickstart-Main.zip | The *.zip* file that contains your executable or script file. The supported file types are listed in the [supported file types](webjobs-create.md?tabs=windowscode#acceptablefiles) section. | |
| 84 | + | **Type** | Triggered | Specifies when the WebJob runs: Continuous or Triggered. | |
| 85 | + | **Triggers** | Scheduled | Scheduled or Manual. Ensure [Always on](configure-common.md?tabs=portal#configure-general-settings) is enabled for the schedule to work reliably.| |
86 | 86 | | **CRON Expression** | 0 0/1 * * * * | For this quickstart, we use a schedule that runs every minute. See [CRON expressions](webjobs-create.md?tabs=windowscode#ncrontab-expressions) to learn more about the syntax. |
|
87 | 87 |
|
88 | 88 | 1. The new WebJob appears on the **WebJobs** page. If you see a message that says the WebJob was added, but you don't see it, select **Refresh**.
|
89 | 89 |
|
90 |
| -1. The scheduled WebJob is run at the schedule defined by the CRON expression. To run it manually at any time, right-click the WebJob in the list and select the **Run** button, then confirm your selection. |
| 90 | +1. The scheduled WebJob is run at the schedule defined by the CRON expression. |
91 | 91 |
|
92 | 92 | :::image type="content" source="media/webjobs-create/scheduled-webjob-run.png" alt-text="Screenshot that shows how to run a manually scheduled WebJob in the Azure portal.":::
|
93 | 93 |
|
94 | 94 | [!INCLUDE [webjobs-cron-timezone-note](../../includes/webjobs-cron-timezone-note.md)]
|
95 | 95 |
|
96 | 96 | ## Review the WebJob logs
|
97 | 97 |
|
| 98 | +Select the log for the WebJob you created earlier. |
| 99 | + |
| 100 | + :::image type="content" source="media/quickstart-webjobs/review-webjob-logs.png" alt-text="Screenshot that shows how to view WebJob logs in an App Service app in the portal (scheduled WebJob)."::: |
| 101 | + |
| 102 | + |
| 103 | +The output should look similar to the following. |
| 104 | + :::image type="content" source="media/quickstart-webjobs/review-webjob-logs.png" alt-text="Screenshot that shows WebJobs log output."::: |
| 105 | + |
| 106 | + |
98 | 107 |
|
99 | 108 | ## Clean up
|
100 | 109 |
|
101 | 110 | To remove the WebJob, select the WebJob in the portal and select `Delete`.
|
102 | 111 |
|
| 112 | + :::image type="content" source="media/quickstart-webjobs/delete-webjob.png" alt-text="Screenshot showing how you can delete a WebJob in the portal."::: |
| 113 | + |
103 | 114 | ## <a name="NextSteps"></a> Next steps
|
104 | 115 |
|
105 | 116 | The Azure WebJobs SDK can be used with WebJobs to simplify many programming tasks. For more information, see [What is the WebJobs SDK](https://github.com/Azure/azure-webjobs-sdk/wiki).
|
0 commit comments