You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/webjobs-dotnet-deploy-vs.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,13 @@ Visual Studio adds the following items to a WebJobs-enabled project:
42
42
- The [Microsoft.Web.WebJobs.Publish](https://www.nuget.org/packages/Microsoft.Web.WebJobs.Publish/) NuGet package.
43
43
- A [webjob-publish-settings.json](#webjob-publish-settingsjson-file) file that contains deployment and scheduler settings.
44
44
45
-
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/convert.png" alt-text="Diagram showing what's added to a console app to enable deployment as a WebJob.":::
45
+
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/convert.png" alt-text="Diagram showing the NuGet package and WebJob publish settings file being added to a console app to enable deployment as a WebJob.":::
46
46
47
47
You can add these items to an existing console app project or use a template to create a new WebJobs-enabled console app project.
48
48
49
49
Deploy a project as a WebJob by itself, or link it to a web project so that it automatically deploys whenever you deploy the web project. To link projects, Visual Studio includes the name of the WebJobs-enabled project in a [webjobs-list.json](#webjobs-listjson-file) file in the web project.
50
50
51
-
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/link.png" alt-text="Diagram showing WebJob project linking to a web project.":::
51
+
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/link.png" alt-text="Diagram showing that a WebJobs project is linked to a web project when its name is included in the the webjobs-list.json file.":::
52
52
53
53
### Prerequisites
54
54
@@ -76,15 +76,15 @@ You have two options:
76
76
77
77
1. In the **Project name** drop-down list, select the console app project to add as a WebJob.
78
78
79
-
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/aaw1.png" alt-text="Screenshot showing how to select a project in Add Azure WebJob dialog box.":::
79
+
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/aaw1.png" alt-text="Screenshot showing how to select a project in the Add Azure WebJob dialog box.":::
80
80
81
81
1. Complete the [Add Azure WebJob](#add-azure-webjob-dialog-box) dialog box, and then select **OK**.
82
82
83
83
#### Enable WebJobs deployment without a web project
84
84
85
85
1. Right-click the console app project in **Solution Explorer**, and then select **Publish as Azure WebJob**.
86
86
87
-
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/paw.png" alt-text="Publish as Azure WebJob.":::
87
+
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/paw.png" alt-text="Screenshot showing how to select Publish as Azure WebJob in the Solution Explorer.":::
88
88
89
89
The **Add Azure WebJob** dialog box appears, with the project selected in the **Project name** box.
90
90
@@ -168,15 +168,15 @@ A WebJobs project that you link to a web project deploys automatically with the
168
168
169
169
To deploy a WebJobs project by itself, right-click the project in **Solution Explorer** and select **Publish as Azure WebJob**.
170
170
171
-
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/paw.png" alt-text="Publish as Azure WebJob.":::
171
+
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/paw.png" alt-text="Screenshot showing how to select Publish as Azure WebJob in the Solution Explorer.":::
172
172
173
173
For an independent WebJob, the same **Publish Web** wizard that is used for web projects appears, but with fewer settings available to change.
174
174
175
175
### Add Azure WebJob dialog box
176
176
177
177
The **Add Azure WebJob** dialog box lets you enter the WebJob name and the run mode setting for your WebJob.
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/aaw2.png" alt-text="Screenshot of the Add Azure WebJob dialog box.":::
180
180
181
181
Some of the fields in this dialog box correspond to fields on the **Add WebJob** dialog box of the Azure portal. For more information, see [Run background tasks with WebJobs in Azure App Service](webjobs-create.md).
- If you deploy a WebJob, and then decide you want to change the type of WebJob and redeploy, delete the *webjobs-publish-settings.json* file. Doing so causes Visual Studio to redisplay the publishing options, so you can change the type of WebJob.
188
188
189
-
- If you deploy a WebJob and later change the run mode from continuous to noncontinuous or vice versa, Visual Studio creates a new WebJob in Azure when you redeploy. If you change other scheduling settings, but leave run mode the same or switch between Scheduled and On Demand, Visual Studio updates the existing job instead of creating a new one.
189
+
- If you deploy a WebJob, and later change the run mode between *continuous* and *triggered*, Visual Studio creates a new WebJob in Azure when you redeploy. If you change other scheduling settings, but leave run mode the same or switch between Scheduled and On Demand, Visual Studio updates the existing job instead of creating a new one.
190
190
191
191
## WebJob types
192
192
@@ -222,7 +222,7 @@ WebJobs uses the same CRON expressions for scheduling as the timer trigger in Az
222
222
223
223
#### settings.job reference
224
224
225
-
The following settings are supported by WebJobs:
225
+
WebJobs supports the following settings in the **settings.job** file:
226
226
227
227
|**Setting**|**Type**|**Description**|
228
228
| ----------- | --------- | --------------- |
@@ -235,15 +235,15 @@ The following settings are supported by WebJobs:
235
235
236
236
If you enable **Always on** in Azure, you can use Visual Studio to change the WebJob to run continuously:
237
237
238
-
1. If you haven't already done so,[publish the project to Azure](#deploy-to-azure-app-service).
238
+
1. If the project isn't published already, then[publish the project to Azure](#deploy-to-azure-app-service).
239
239
240
240
1. In **Solution Explorer**, right-click the project and select **Publish**.
241
241
242
242
1. In the **Settings** section, choose **Show all settings**.
243
243
244
244
1. In the **Profile settings** dialog box, choose **Continuous** for **WebJob Type**, and then choose **Save**.
245
245
246
-
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/publish-settings.png" alt-text="Publish Settings dialog box for a WebJob.":::
246
+
:::image type="content" source="./media/webjobs-dotnet-deploy-vs/publish-settings.png" alt-text="Screenshot showing the Publish Settings dialog box for a WebJob.":::
247
247
248
248
1. Select **Publish** in the **Publish** tab to republish the WebJob with the updated settings.
0 commit comments