Deploying Spring Boot API to Azure App Service

In this section, we are taking our product API service and migrating it to an Azure App Service. We will look at the additional changes made to the application to adhere to the requirements of the Azure App Service.

I have taken the product API REST service that we built in Chapter 3, Designing Your Cloud-Native Application. In the service, we make the following changes:

Add a file web.config in the root folder of the project:

<?xml version="1.0" encoding="UTF-8"?><configuration>  <system.webServer>    <handlers>      <add name="httpPlatformHandler" path="*" verb="*"        modules="httpPlatformHandler" resourceType="Unspecified"/>    </handlers>    <httpPlatform processPath="%JAVA_HOME%binjava.exe" arguments="-Djava.net.preferIPv4Stack=true ...

Get Cloud-Native Applications in Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.