Skip to content

Latest commit

 

History

History
67 lines (55 loc) · 1.98 KB

File metadata and controls

67 lines (55 loc) · 1.98 KB
author karlerickson
ms.author v-shilichen
ms.service azure-spring-apps
ms.custom devx-track-azurecli
ms.topic include
ms.date 08/19/2025
ms.update-cycle 1095-days

Use the following steps to deploy the apps:

  1. Enter the project root directory and use the following command to build and deploy the frontend application:

    az spring app deploy \
        --service ${SPRING_APPS} \
        --name ${APP_FRONTEND} \
        --build-env BP_WEB_SERVER=nginx \
        --source-path ./spring-petclinic-frontend
    
  2. Use the following command to build and deploy the customers-service application:

    az spring app deploy \
        --service ${SPRING_APPS} \
        --name ${APP_CUSTOMERS_SERVICE} \
        --source-path \
        --config-file-pattern application,customers-service \
        --build-env \
            BP_MAVEN_BUILT_MODULE=spring-petclinic-customers-service \
            BP_JVM_VERSION=17
    
  3. Use the following command to build and deploy the vets-service application:

    az spring app deploy \
        --service ${SPRING_APPS} \
        --name ${APP_VETS_SERVICE} \
        --source-path \
        --config-file-pattern application,vets-service \
        --build-env \
            BP_MAVEN_BUILT_MODULE=spring-petclinic-vets-service \
            BP_JVM_VERSION=17
    
  4. Use the following command to build and deploy the visits-service application:

    az spring app deploy \
        --service ${SPRING_APPS} \
        --name ${APP_VISITS_SERVICE} \
        --source-path \
        --config-file-pattern application,visits-service \
        --build-env \
            BP_MAVEN_BUILT_MODULE=spring-petclinic-visits-service \
            BP_JVM_VERSION=17