This example assumes you have previously completed the following examples:
- Create an Azure Resource Group
- Create an Azure App Service Plan
- Deploy a web application on a managed Tomcat
- Create a deployment slot
mvn clean install
mvn azure-webapp:deploy \
-DappName=$APPSERVICE_TOMCAT_HELLOWORLD \
-DappServicePlan=$APPSERVICE_PLAN \
-DresourceGroup=$RESOURCE_GROUP \
-DdeploymentSlotName=staging
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.
You can also get the URL by using the following command:
az webapp deployment slot list \
--resource-group $RESOURCE_GROUP \
--name $APPSERVICE_TOMCAT_HELLOWORLD \
--output tsv \
--query '[0].defaultHostName'
Do NOT forget to remove the resources once you are done running the example.
1m