Skip to content

Commit e853efe

Browse files
committed
indents
1 parent eeafcec commit e853efe

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

articles/app-service/quickstart-webjobs.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@ WebJobs is a feature of Azure App Service that enables you to run a program
2323
- **[Always on](configure-common.md?tabs=portal#configure-general-settings)** must be enabled on your app.
2424
- Ensure the App setting `WEBSITE_SKIP_RUNNING_KUDUAGENT` is set to `false`.
2525

26-
## Create your sample locally
26+
## Create your WebJob locally
2727

2828
1. In this step, you create a basic .NET WebJob project and navigate to the project root.
2929

30-
```bash
31-
dotnet new console -n webjob –framework net9.0
32-
33-
cd webjob
34-
```
30+
```bash
31+
dotnet new console -n webjob –framework net9.0
32+
33+
cd webjob
34+
```
3535

3636
1. Next, replace `Program.cs` to the following code that writes the current time to the console:
3737

38-
```dotnet
39-
using System;
40-
41-
class Program
42-
{
43-
static void Main()
38+
```dotnet
39+
using System;
40+
41+
class Program
4442
{
45-
DateTimeOffset now = DateTimeOffset.Now;
46-
Console.WriteLine("Current time with is: " + now.ToString("hh:mm:ss tt zzz"));
47-
}
48-
}
49-
```
43+
static void Main()
44+
{
45+
DateTimeOffset now = DateTimeOffset.Now;
46+
Console.WriteLine("Current time with is: " + now.ToString("hh:mm:ss tt zzz"));
47+
}
48+
}
49+
```
5050

5151
1. From the *webjob* directory, run the webjob to confirm the current time is output to the console:
5252

@@ -385,7 +385,7 @@ The file, `run.sh`, calls webjob.php as shown below:
385385
386386
Select the log for the WebJob you created earlier.
387387
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).":::
389389
390390
391391
The output should look similar to the following.
@@ -396,8 +396,10 @@ The output should look similar to the following.
396396
397397
To remove the WebJob, select the WebJob in the portal and select `Delete`.
398398
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.":::
400400
401401
## <a name="NextSteps"></a> Next steps
402402
403-
How to run
403+
## Next step
404+
405+
[Explore more advanced WebJob scenarios, including triggers and deployment options](https://learn.microsoft.com/en-us/azure/app-service/webjobs-create)

0 commit comments

Comments
 (0)