Sunday, July 11, 2021

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,






No comments:

Post a Comment

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

The concept: The basic concept is to build trained AI model for each role separately in scalable fashion within a private cloud. As an examp...