spring cron job onpremise to cron job in azure app service

Vishu 1,716 Reputation points
2025-03-18T17:04:05.5366667+00:00

Experts.

Please guide viable option to migrate spring cron job onpremise to cron job in azure app service

Header 1 Header 2
Cell 1 Cell 2
Cell 3 Cell 4
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,640 questions
{count} votes

Accepted answer
  1. Laxman Reddy Revuri 3,910 Reputation points Microsoft External Staff
    2025-03-19T04:50:57.3333333+00:00

    Hi @Vishu
    Migrating a Spring cron job from an on-premises environment to Azure App Service requires adjustments, as Azure App Service does not provide traditional scheduled job functionality.

    1. Migrate your cron job logic into an Azure Function. With Azure Functions, you can run code using a timer trigger without worrying about the underlying infrastructure.
      https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=python-v2%2Cisolated-process%2Cnodejs-v4&pivots=programming-language-csharp
    2. For users wishing to remain on Azure App Service, WebJobs is also an option. Tasks can be executed in the background and set to run on a schedule, similarly to cron jobs. Your Spring application can be deployed as a Web Job.
    3. Logic Apps in Azure can achieve more complex workflows by creating scheduled tasks that incorporate multiple services.
      references:
      https://learn.microsoft.com/en-us/azure/app-service/webjobs-create?tabs=windowscode
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.