This example assumes you have previously completed the following examples:
To build the JAR file use the following Maven command line.
mvn package
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
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.
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 |
Do NOT forget to remove the App Service and its associated resources once you are done running the example.