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.

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.

    Setting Example Description
    Service type Storage - Blob The type of service you're going to connect to your app.
    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.
    Connection name storageblob_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.
    Storage account my-storage-account The target storage account 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. Choose between SpringBoot and Java.

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

  6. Select Next: Authentication to select the authentication type. Then select Connection string to use an access key to connect your storage account. 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.

    Screenshot of the Azure portal, validation tab.

View service connection

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: