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/tutorial-webjobs.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,24 +269,24 @@ public class HelloWorld {
269
269
270
270
1. The `run.sh` script runs a jar with the name that setin the Maven configuration. This script will run when our WebJob is triggered.
271
271
272
-
```bash
273
-
java -jar webjob-artifact-1.0.0.jar
274
-
```
272
+
```bash
273
+
java -jar webjob-artifact-1.0.0.jar
274
+
```
275
275
276
276
1. Next, we compile the Java project to produce the executable `.jar`. There are multiple ways to do this, but for this example, we’ll use Maven. Run the following commands from the `project/` directory:
277
277
278
-
```bash
279
-
mvn install
280
-
mvn package
281
-
```
278
+
```bash
279
+
mvn install
280
+
mvn package
281
+
```
282
282
283
283
The jar files will be located at `project/target/webjob-artifact-1.0.0.jar` after a successful build.
284
284
285
285
1. Move the jar file to the root of the git repo with `mv project/target/webjob-artifact-1.0.0.jar .` Next you package our application as a `.zip` file.
286
286
287
-
```bash
288
-
zip webjob.zip run.sh webjob-artifact-1.0.0.jar
289
-
```
287
+
```bash
288
+
zip webjob.zip run.sh webjob-artifact-1.0.0.jar
289
+
```
290
290
291
291
## Create a scheduled WebJob on Azure
292
292
@@ -385,7 +385,7 @@ php -f webjob.php
385
385
386
386
Select the log for the WebJob you created earlier.
387
387
388
-
:::image type="content" source="media/quickstart-webjobs/review-webjobs-logs.png" alt-text="Screenshot that shows how to view WebJob logs in an App Service app in the portal (scheduled WebJob).":::
388
+
:::image type="content" source="media/quickstart-webjobs/review-webjobs-logs.png" alt-text="Screenshot that shows how to view WebJob logs in an App Service app in the portal (scheduled WebJob).":::
389
389
390
390
391
391
The output should look similar to the following.
@@ -396,7 +396,7 @@ The output should look similar to the following.
396
396
397
397
To remove the WebJob, selectthe WebJob in the portal and select`Delete`.
398
398
399
-
:::image type="content" source="media/quickstart-webjobs/delete-webjobs.png" alt-text="Screenshot showing how you can delete a WebJob in the portal.":::
399
+
:::image type="content" source="media/quickstart-webjobs/delete-webjobs.png" alt-text="Screenshot showing how you can delete a WebJob in the portal.":::
0 commit comments