Preethi H R
Preethi H R

Reputation: 43

How to deploy Simple Java Spring boot application into Azure Web Job?

I have a simple spring boot application with controller class having Rest API's. Now I want to deploy this Java Spring application into Azure Web Job and trigger manually.

In Microsoft documentation (https://learn.microsoft.com/en-us/azure/app-service/webjobs-create) the details of deploying application written in .NET and C# is provided but I could not find anything related to Java or Spring boot App deployment into Azure Web job.

Can anyone please let me know the steps to be followed for deploying Spring boot app into Azure Web Job or Attach any documentations for reference?

Thanks & Regards, Preethi H R

Upvotes: 1

Views: 663

Answers (1)

Pravallika KV
Pravallika KV

Reputation: 8541

To execute the Java web jobs on Azure, I have followed the MSDOC.

  1. created a Java spring boot Project and compressed into zip file.

  2. Open Azure Portal, navigate to App Service page of your App Service web app and select Webjobs and add a new Webjob by providing required settings as specified below:

  3. On the WebJobs page, select Add.

  4. Fill the details in Add WebJob settings as specified in the table. enter image description here

  • File Upload: Upload Executable or script file which has been converted to zip file (Springboot_H2_database_CRUD.zip).

Create a manually triggered WebJob

  1. select WebJobs in Azure App service, create a new web job by selecting Type as Triggered in the settings and select Manual in Triggers.

enter image description here

  1. Select OK.

  2. To run the WebJob, click on the webjob name and select Run. enter image description here

Create a scheduled WebJob

  • A scheduled Webjob is also triggered. You can schedule the trigger to occur automatically on the schedule you specify.

enter image description here

  • Select OK and Run the newly created webjob.

enter image description here

  • Desired execution frequency can be configured for the web job.

Upvotes: 1

Related Questions