Azure App services : Article 06
Hello Everyone this is my Sixth Article in Azure Series. If you missed to read my Azure Front Door article please click here.
What is Azure App Services?
Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile back ends. You can develop in your favorite language.
App Service not only adds the power of Microsoft Azure to your application, such as security, load balancing, autoscaling, and automated management. You can also take advantage of its DevOps capabilities, such as continuous deployment from Azure DevOps, GitHub, Docker Hub, and other sources, package management, staging environments, custom domain, and TLS/SSL certificates.
Why use App Service?
Multiple languages and frameworks
- Managed production environment
- Containerization and Docker
- DevOps optimization
- Global scale with high availability
- Connections to SaaS platforms and on-premises data
- Security and compliance
- Application templates
- Visual Studio and Visual Studio Code integration
- API and mobile features
- Serverless code
For detail please click here
Note: I have already wrote an article about creating web app in FrontDoor article.
Deploy my spring boot application
You can get my sample springboot project file on Github: link
This is my database configuration in springboot application property
Once you have configured all of the settings , you are ready to deploy your web app to Azure. To do so, use the following steps:
Configure Maven Plugin for Azure App Service
Step 1: Open
pom.xml in a code editor and In the
<build> section of the pom.xml, add the following
<plugin> entry inside the
Step 2: Run the following command in terminal.
Step 3: When you get the Confirm (Y/N) prompt, press ‘y’ and the configuration is done.
Step 4: Add the
<appSettings> section to the
<configuration> section of
<azure-webapp-maven-plugin> to listen on the 80 port.
Step 5 : Deploy the app to Azure
From the command prompt or terminal window that you were using earlier, rebuild the JAR file using Maven if you made any changes to the pom.xml file; for example:
Use this command : mvn clean package
Step 6: Deploy your web app to Azure by using Maven
Use this command : mvn azure-webapp:deploy
Maven will deploy your web app to Azure; if the web app or web app plan does not already exist, it will be created for you. It might take a few minutes before the web app is visible at the URL shown in the output. Navigate to the URL in a Web browser. You should see the message displayed: Greetings from Spring Boot!
This is the end of this article. See you in the next article..!
Next Article: Azure Functions