Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 2.68 KB

deploy-app-azure-spring-apps-event-driven.md

File metadata and controls

80 lines (53 loc) · 2.68 KB
authorms.authorms.servicems.topicms.date
karlerickson
v-shilichen
azure-spring-apps
include
07/19/2023

The Deploy to Azure button in the previous section launches an Azure portal experience that includes application deployment, so nothing else is needed.

[!INCLUDE event-driven-spring-apps-maven-plugin]

  1. Use the following command to deploy the app:

    ./mvnw azure-spring-apps:deploy

    The following list describes the command interaction:

    • OAuth2 login: You need to authorize the sign in to Azure based on the OAuth2 protocol.

    After the command is executed, you can see from the following log messages that the deployment was successful:

    [INFO] Deployment(default) is successfully created [INFO] Starting Spring App after deploying artifacts... [INFO] Deployment Status: Running 

Use the following steps to use AZD to package the app, provision the Azure resources required by the web application, and then deploy to Azure Spring Apps.

  1. Use the following command to package a deployable copy of your application:

    azd package

    The console outputs messages similar to the following example:

    SUCCESS: Your application was packaged for Azure in xx seconds. 
  2. Use the following command to deploy the application code to those newly provisioned resources:

    azd deploy

    The console outputs messages similar to the following example:

    Deploying services (azd deploy) (✓) Done: Deploying service simple-event-driven-app - No endpoints were found SUCCESS: Your application was deployed to Azure in xx minutes xx seconds. You can view the resources created under the resource group rg-<your-environment-name> in Azure Portal: https://portal.azure.com/#@/resource/subscriptions/<your-subscription-id>/resourceGroups/rg-<your-environment-name>/overview 

Note

You can also use azd up to combine the previous three commands: azd provision (provisions Azure resources), azd package (packages a deployable copy of your application), and azd deploy (deploys application code). For more information, see Azure-Samples/ASA-Samples-Event-Driven-Application.


close