Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.61 KB

deploy-tomcat-app-service.md

File metadata and controls

48 lines (27 loc) · 1.61 KB
author ms.author ms.reviewer ms.date
KarlErickson
karler
givermei
03/11/2024

Run the sample

The following sections show you how to deploy the sample to Azure App Service.

Prerequisites

[!INCLUDE deploy-app-service-intro.md]

Configure the Maven plugin

[!INCLUDE deploy-tomcat-app-service-configure-maven.md]

Prepare the app for deployment

[!INCLUDE deploy-app-service-prepare-deploy.md]

[!INCLUDE deploy-tomcat-app-service-secret-note.md]

Update your Microsoft Entra ID app registration

[!INCLUDE deploy-app-service-update-registration.md]

Deploy the app

[!INCLUDE deploy-app-service-deploy.md]

To run the sample on Tomcat, use the following steps:

  1. In your Tomcat installation, ensure that there's an entry in tomcat/conf/server.xml for the address you want to host your application on.

    By default, the samples just expect to connect to http://localhost:8080 or https://localhost:8443, as defined in the app.homePage value in the authentication.properties file.

  2. Copy the .war file you generated with Maven to the /webapps/ directory in your Tomcat installation, and start the Tomcat server.

  3. After Tomcat starts, open your browser and navigate to whatever URL you defined in step 1 and you should be able to access the application.