Thursday, 26 September 2019

Schedule Azure WebJobs Using Azure Logic Apps

In this article, we will see how to migrate Azure WebJobs from Azure Scheduler to Azure Logic Apps. As we all know, Azure Scheduler will become obsolete on December 31, 2019, after this, all Scheduler job collections and jobs will stop running and will be deleted from the system. In order to continue to use jobs, we must move Azure Schedulers to Azure Logic Apps as soon as possible. Azure Logic Apps have numerous features which are as below,
  • Uses a visual designer and connectors to integrate with more than 200 different services, including Azure Blob storage, Azure Service Bus, Microsoft Outlook, and SAP.
  • Manages each scheduled workload as a first-class Azure resource.
  • Runs multiple one-time jobs using a single logic app.
  • Sets schedules that automatically adjust to daylight saving time.
For more details about its features and usage, please refer to the below article.
Before going further, let’s know something Azure WebJobs.
 
WebJobs is a feature of Azure App Service that enables you to run a program or script in the same context as a web app, API app, or mobile app. There is no additional cost to use WebJobs. For more detail please refer to the below article.
Now, we will see step by step, how to schedule Azure WebJobs using Azure Logic Apps.
 
Step 1
 
Create and deploy an on-demand (triggered) job under Azure App Service. Click here to learn how to create and deploy a WebJob.


Create and deploy webjob
 
Step 2
 
Create a blank Logic App.
 
Logic App
 
Step 3
 
Edit the logic app and select a Recurrence type of Schedule trigger.
 
Logic App Designer
 
Step 4
 
Set the interval, as per your requirement. Also, you can set other parameters like Time Zone and Start Time as shown in the below image. In my case, I am going to set 1 minute without any extra parameter.
 
Logic App Designer
 
Step 5
 
After trigger configuration, now its time to set HTTP action with post method and basic authentication.
 
HTTP Request
  1. "inputs": {  
  2.    "authentication": {  
  3.     "password": "password",  
  4.        "type": "Basic",  
  5.        "username": "$username"  
  6.         },  
  7.     "method": "POST",  
  8.     "uri": https://appname-webjob.scm.azurewebsites.net/api/webjobtype/webjobname/run  
  9.   },  
HTTP Post
 
Notewe can get the basic authentication from publish profile of an application where we have deployed the WebJob.
 
Step 6
 
Run the Logic App and check the status under run history.
 
Logic App Run History
 
WebJob Run History
 
Note
You can download the code and copy and paste it in the code view. Change your credentials and URI according to your WebJob; your Recurrence type Logic App is ready.

Expected Results
 
The Logic App has configured correctly, and it is working as expected. It is running the Azure WebJob as per the set frequency. If there is an error in the WebJob then your run will fail, and you can see it under Run History.
 

Summary

 
In the above article, we have learned how to schedule the WebJobs using Azure Logic Apps. In reference to the article given above, we noticed that the Azure Scheduler is scheduled to retire fully on December 31, 2019, and All Scheduler job collections and jobs will stop running and they will be deleted from the system simultaneously. So, before that, we need to shift Azure Scheduler jobs to Azure Logic Apps.

9 comments:

المتوكل على الله said...


شركة تنظيف مكيفات بالرياض
شركة تنظيف مساجد بالرياض
شركة تنظيف موكيت بالرياض
شركة تنظيف شقق بالرياض
شركة تنظيف واجهات بالرياض

Samirr said...

من أهم جوانب الصيانة التأكد من نظافة حساسات الحرارة داخل المكيف، حيث تلعب هذه الحساسات دورًا مهمًا في تنظيم درجة الحرارة وتشغيل الجهاز بشكل صحيح. إذا تعرضت هذه الحساسات للأتربة أو التلف، فقد يؤدي ذلك إلى قراءات غير دقيقة وبالتالي ضعف في الأداء أو استهلاك زائد للكهرباء.
فك وتركيب مكيفات
شركة تركيب مكيفات
فني تركيب مكيفات

Xavier Henderson said...

Scheduling Azure WebJobs with Azure Logic Apps is a useful approach for automating recurring tasks without manually triggering jobs. The combination of scheduling and workflow automation can make cloud-based processes much easier to manage. I also enjoy finding practical online resources, including information about constancia de situación fiscalthrough TCPCrack.

Xavier Henderson said...

This is a useful guide for developers working with Azure WebJobs and Logic Apps. Scheduling background tasks can make automation much more efficient, especially when recurring jobs need to run reliably without manual intervention. I appreciate tutorials that explain how different Azure services can work together to solve practical automation requirements.Azure WebJobs scheduling is a valuable topic for anyone looking to build more reliable and automated cloud workflows.

Xaviar Oven said...

Great tutorial! I've been looking for a reliable way to automate my WebJobs, and using Logic Apps seems like the perfect solution. It offers so much more flexibility and control over the execution flow compared to the built-in scheduler. Implementing effective cloud automation strategies like this really helps in streamlining background tasks and saving time. Thanks for the clear step-by-step guide!

Alex said...

This is a helpful technical post for developers working with Azure services and automation. I like how combining WebJobs with Logic Apps can make scheduled tasks more manageable and flexible. The Azure WebJobsscheduling approach sounds especially useful for practical cloud workflows.

ADOBE PHOTOSHOP said...

Schedule Azure WebJobs Using Azure Logic Apps explains how Azure Logic Apps can be used to automate and schedule WebJobs efficiently. It’s a useful resource for developers and cloud professionals interested in Azure automation and workflow management, with internet download manager full programlar indir included as a digital resource.

Sudoku online said...

This is a useful topic for anyone working with Azure automation, especially the idea of scheduling WebJobs through Logic Apps to simplify recurring tasks. Practical technical guides like this are great for developers, and IDM download manager can also help manage downloadable tutorials and other learning resources efficiently.

Sudoku online said...

Great topic for developers working with Azure! Using Azure Logic Apps to schedule WebJobs can help automate recurring tasks and reduce the need for manual intervention. I especially appreciate tutorials that explain the setup clearly and include practical examples, since they make cloud automation easier to understand and implement. Cloud automation is becoming an important skill for building efficient and reliable applications.