Microsoft Azure - Spring boot application deployment

 Step 1 - clone the project from : git clone https://github.com/spring-projects/spring-petclinic.git


 Step 2 - run the application locally using Bash like below

cd spring-petclinic ./mvnw package java -jar target/*.jar


 Step 3 - run the application locally using Bash like below

Now you want to make the application ready for cloud(Azure) deployment 

This project use java 8

Run below command at project path to add the necessary Azure deployment plugins for Maven

mvn com.microsoft.azure:azure-webapp-maven-plugin:1.12.0:config

It'll ask you for some inputs to provide according to your preference (eg: Azure pricing tier, OS)

My screen:


So, once you complete this step it'll automatically modify the pom.xml with below kind of settings


Step 4 - Deploy the application with maven using below command

mvn package com.microsoft.azure:azure-webapp-maven-plugin:1.12.0:deploy



Congratulations! The app is successfully deployed to Azure App Service.
You can visit the url above and verify,






Comments

Popular posts from this blog

Let's try to build scrum masters/project managers/software architects/even a company with training AI models

TCP Ports list

Problem Solving: Allotment calculator