DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Azure App Service, Azure Cloud Services, or VMs - Which Hosting Service Is Right for Your App?
  • Mobile and IoT Security Strategies in the Cloud
  • Schedule Pipelines in Azure DevOps Using Cron Expressions
  • Travis CI vs Jenkins: Which CI/CD Tool Is Right For You?

Trending

  • How to Merge HTML Documents in Java
  • Developers Beware: Slopsquatting and Vibe Coding Can Increase Risk of AI-Powered Attacks
  • Event Driven Architecture (EDA) - Optimizer or Complicator
  • Using Python Libraries in Java
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Schedule Azure WebJobs Using Azure Logic Apps

Schedule Azure WebJobs Using Azure Logic Apps

Microsoft has announced that it will stop supporting Azure WebJobs at the end of the year. Here's how to save your applications.

By 
Harsh Gupta user avatar
Harsh Gupta
·
Oct. 15, 19 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
13.6K Views

Join the DZone community and get the full member experience.

Join For Free

Image title

Migrate your Azure WebJobs with Azure Logic Apps before it's too late.

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 which all Scheduler job collections and jobs will stop running and they 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:

  • 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 this article.

WebJobs is a feature of the 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. 

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 on-demand job

Step 2: Create a blank Logic App.

Blank Logic App

Step 3: Edit the Logic app and select a Recurrence type of Schedule trigger.

Recurrence type


Step 4: Set the intervals according to your requirements. 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.

Setting parameters


Step 5: After trigger configuration, now it's time to set HTTP action with post method and basic authentication.

Set HTTP action

"inputs": {

   "authentication": {

       "password": "password",

       "type": "Basic",

       "username": "$username"

        },

    "method": "POST",

    "uri": https://appname-webjob.scm.azurewebsites.net/api/webjobtype/webjobname/run

  },


Authentication


Note: we 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.

Status check


WebJob Details


Note: You can download the code, copy and paste it in 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 according to the set frequency. If there is an error in the WebJob, then your run will be failed, and you can see it under Runs History.

Summary

In this 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, shift Azure Scheduler jobs to Azure Logic Apps as soon as possible.

Further Reading


Azure Logic Apps Lifecycle – The Big Picture

Azure WebJobs vs. Azure Functions

azure mobile app Schedule (computer science)

Opinions expressed by DZone contributors are their own.

Related

  • Azure App Service, Azure Cloud Services, or VMs - Which Hosting Service Is Right for Your App?
  • Mobile and IoT Security Strategies in the Cloud
  • Schedule Pipelines in Azure DevOps Using Cron Expressions
  • Travis CI vs Jenkins: Which CI/CD Tool Is Right For You?

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!