Deploy our backend (spring-boot) application using Azure Web App Service

suji guna
3 min readAug 15, 2020

Hey Guys! Its me again….

This is the fifth article on Distributed and cloud computing- sample environment in azure cloud platform series. If you have missed the previous article you can visit the below link.

In this article we will get to know how to deploy our backend application using Azure Web App Service.

First lets learn about Azure App Services.

Azure App Service

Azure App Service is a fully managed “Platform as a Service” (PaaS) that integrates Microsoft Azure Websites, Mobile Services, and BizTalk Services into a single service, adding new capabilities that enable integration with on-premises or cloud systems. Azure App Service gives users several capabilities such as,

  • Provision and deploy Web and Mobile Apps in seconds.
  • Build engaging iOS, Android, and Windows apps.
  • Automate business processes with a visual design experience.
  • Integrate with “Software as a Service” (SaaS) applications (Example : Office 365, Salesforce, Dynamics, OneDrive, Box, Dropbox, Twilio, Twitter, Facebook, Marketo, and so on) and on-premises applications.

With the App Services, Lets deploy our Backend building a JAR file.

All you have to do is,

  • You have to replace server name, username and password that you have defined for your Azure database for MySQL server in “application.properties” file.
  • Open your “pom.xml” to see all the configuration written and add plugins to the app as below.

Change your Resource group, appName, region and pricingTier as per your application.

  • Now go to terminal and execute the below command to build the JAR file using Maven.

mvn clean package

  • After a succesful build, now deploy your app with following command.

mvn azure-webapp:deploy

Hurray! we have deployed.Now you can go to azure portal and see your application there.

Thats all.. for today.

You can learn how to implement Azure Active Directory and Azure cdn from my next article.

Click the below Link to follow,

Implementing Azure Active Directory and Azure cdn.!

Reference: https://spring.io/guides/gs/spring-boot-for-azure/

To refer the ARM templates, please follow the link.

ARM Templates

--

--

suji guna

B.Sc in Software Engineering. University of Kelaniya, SriLanka.