|
| 1 | +--- |
| 2 | +title: "App Service WebJobs Overview" |
| 3 | +description: "An overview of Azure WebJobs, covering its types, supported platforms, file types, scheduling with NCRONTAB expressions, deployment options, and benefits for background processing within Azure App Service." |
| 4 | +keywords: "Azure WebJobs, App Service, background processing, triggered jobs, continuous jobs, NCRONTAB, deployment, Azure, technical overview" |
| 5 | +ms.topic: overview |
| 6 | +ms.date: 5/1/2025 |
| 7 | +author: msangapu-msft |
| 8 | +ms.author: msangapu |
| 9 | +ms.reviewer: ggailey |
| 10 | +#Customer intent: As a web developer, I want to leverage background tasks to keep my application running smoothly. |
| 11 | +--- |
| 12 | + |
| 13 | +# App Service WebJobs overview |
| 14 | + |
| 15 | +## Introduction |
| 16 | +Azure WebJobs is a built-in feature of Azure App Service that enables you to run background tasks, scripts, and programs alongside your web, API, or mobile applications without needing separate infrastructure. This integration simplifies the automation of routine or resource-intensive operations—such as data processing, file cleanups, or queue monitoring—by leveraging the same scalable, managed environment as your primary application. |
| 17 | + |
| 18 | +## WebJob types |
| 19 | +WebJobs come in two primary types: |
| 20 | +- **Triggered WebJobs:** Run on demand, on a schedule, or in response to specific events. |
| 21 | +- **Continuous WebJobs:** Operate perpetually, ensuring that critical background processes are always active. |
| 22 | + |
| 23 | +For scheduled tasks, NCRONTAB expressions are used to define precise execution intervals, giving you fine-grained control over when the jobs run. |
| 24 | + |
| 25 | +## Supported platforms and file types |
| 26 | +Azure WebJobs is fully supported on Windows code, Windows containers, Linux code, and Linux containers. |
| 27 | + |
| 28 | +Supported file types include: |
| 29 | +- Windows command scripts (`.cmd`, `.bat`, `.exe`) |
| 30 | +- PowerShell scripts (`.ps1`) |
| 31 | +- Bash scripts (`.sh`) |
| 32 | +- Scripting languages such as Python (`.py`), PHP (`.php`), Node.js (`.js`), and F# (`.fsx`) |
| 33 | + |
| 34 | +This versatility enables integration of WebJobs into a wide range of application architectures. |
| 35 | + |
| 36 | +## Benefits and deployment |
| 37 | +By incorporating WebJobs into your App Service, you reduce operational overhead while gaining robust capabilities for background processing. Deployment options are flexible and include: |
| 38 | +- **Visual Studio Integration:** Seamlessly deploy WebJobs alongside your ASP.NET applications. |
| 39 | +- **Azure Portal and ZIP Deployment:** Easily upload and deploy your WebJob packages. |
| 40 | +- **Automated Pipelines:** Use ARM templates or Git for automated deployments. |
| 41 | + |
| 42 | +Additionally, WebJobs provide built-in logging and monitoring, as well as seamless integration with other Azure services, making them a cost-effective and efficient solution for automating background tasks. |
0 commit comments