This sample shows how to run Java 11 app in Azure Spring Cloud.
- Run
mvn clean packageunderjava-11-sample. - Install Azure CLI extension for Azure Spring Cloud by running below command.
az extension add -y --source https://azureclitemp.blob.core.windows.net/spring-cloud/spring_cloud-0.1.0-py2.py3-none-any.whl - Create an instance of Azure Spring Cloud.
az spring-cloud create -n <resource name> -g <resource group name> - Create an app with public domain assigned.
az spring-cloud app create -n <app name> -s <resource name> -g <resource group name> --is-public true - Deploy app with jar
az spring-cloud app deploy -n <app name> -s <resource name> -g <resource group name> --jar-path ./target/hello-world-11-1.0-SNAPSHOT.jar - Verify app is running. Instances should have status
RUNNINGand discoveryStatusUP.az spring-cloud app show -n <app name> -s <resource name> -g <resource group name> - Verify sample is working. The url is fetch from previous step.
curl {url}/{name} Hello {name}