Muokkaa

Jaa


Quickstart: Create a service connection in Azure Spring Apps from the Azure portal

This quickstart shows you how to connect Azure Spring Apps to other Cloud resources using the Azure portal and Service Connector. Service Connector lets you quickly connect compute services to cloud services, while managing your connection's authentication and networking settings.

Note

For information on connecting resources using Azure CLI, see Create a service connection in Azure Spring Apps with the Azure CLI.

Prerequisites

Sign in to Azure

Sign in to the Azure portal at https://portal.azure.com/ with your Azure account.

Create a new service connection

You'll use Service Connector to create a new service connection in Azure Spring Apps.

  1. To create a new connection in Azure Spring Apps, select the Search resources, services and docs (G +/) search bar at the top of the Azure portal, type Azure Spring Apps in the filter and select Azure Spring Apps.

    Screenshot of the Azure portal, selecting Azure Spring Apps.

  2. Select the name of the Azure Spring Apps instance you want to connect to a target resource.

  3. Under Settings, select Apps and select the application from the list.

    Screenshot of the Azure portal, selecting an app.

  4. Select Service Connector from the left table of contents and select Create. Screenshot of the Azure portal, selecting the button to create a connection.

  5. Select or enter the following settings. Screenshot of the Azure portal, fill basic info to create a connection.

    Setting Example Description
    Service type Key Vault The type of service you're going to connect your app to.
    Connection name keyvault_17d38 The connection name that identifies the connection between your app and target service. Use the connection name provided by Service Connector or enter your own connection name.
    Subscription my-subscription The subscription that contains your target service (the service you want to connect to). The default value is the subscription that contains the app deployed to Azure Spring Apps.
    Key vault my-keyvault-name The target Key Vault you want to connect to. If you choose a different service type, select the corresponding target service instance.
    Client type SpringBoot The application stack that works with the target service you selected. Besides SpringBoot and Java, other stacks are also supported.
  6. Select Next: Authentication to select the authentication type. Recommend to use System Managed Identity to connect to your Key Vault.

    Screenshot of the Azure portal, filling out the Authentication tab.

  7. Select Next: Networking to select the network configuration and select Configure firewall rules to enable access to target service so that your app can reach the Blob Storage.

    Screenshot of the Azure portal, filling out the Networking tab.

  8. Select Next: Review + Create to review the provided information. Wait a few seconds for Service Connector to validate the information and select Create to create the service connection.

View service connections

Azure Spring Apps connections are displayed under Settings > Service Connector.

  1. Select > to expand the list and access the properties required by your application.

  2. Select Validate to check your connection status, and select Learn more to review the connection validation details.

    Screenshot of the Azure portal, get connection validation result.

Next steps

Check the guides below for more information about Service Connector and Azure Spring Apps: