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
- Deploy to a deployment slot
To swap deployment slot use the following command line:
az webapp deployment slot swap \
--resource-group $RESOURCE_GROUP \
--name $APPSERVICE_TOMCAT_HELLOWORLD \
--slot staging
Do NOT forget to remove the resources once you are done running the example.
2m