Skip to content

Latest commit

 

History

History
102 lines (69 loc) · 2.61 KB

File metadata and controls

102 lines (69 loc) · 2.61 KB

Deploy a managed JavaSE Quarkus application

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group
  2. Create an Azure App Service Plan

Build the example

To build the JAR file use the following Maven command line.

  mvn package

Run example locally

To run the example locally use the following Maven command line.

  mvn quarkus:dev

You can see the application in action at http://localhost:8080/hello

Deploy the managed JavaSE Quarkus application

To deploy the application use the following command lines:

  export APPSERVICE_JAVASE_QUARKUS=javazappsvc-javase-quarkus-$RANDOM

  mvn azure-webapp:deploy \
    -DappName=$APPSERVICE_JAVASE_QUARKUS \
    -DappServicePlan=$APPSERVICE_PLAN \
    -DresourceGroup=$RESOURCE_GROUP

Once the command completes you will be able to see the example by using your web browser and going to the xxxxx.azurewebsites.net address the command echoes.

Properties supported by the example

The example supports the following properties that you can pass in as -Dname=value to the Maven command line to customize your deployment.

name description
example.appName the application name
example.appServicePlan the App Service plan to use
example.resourceGroup the Azure Resource Group name

Cleanup

Do NOT forget to remove the App Service and its associated resources once you are done running the example.