Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.92 KB

File metadata and controls

61 lines (38 loc) · 1.92 KB

Configure the Azure Spring Apps Config Server

spring/config-server/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group
  2. Create an Azure Spring Apps environment

Configure the Azure Spring Apps Config Server

To use the Azure Spring Apps Config Server you need to give it a configuration file that points to the Git repository you want to use. The command line below sets the configuration of the Azure Spring Apps Config Server according to what is in the application.yml file.

  az spring config-server set \
        --config-file application.yml \
        --name ${SPRING_NAME} \
        --resource-group ${RESOURCE_GROUP}

Note as a convenience (to keep everything in one Git repository) the application.yml file specifies a default-label, which maps to the spring-cloud-config-server branch of this Git repository.

Cleanup

Do NOT forget to remove the resources you created once you are done with the example.

Reference documentation

  1. Commands to manage Azure Spring Apps
  2. Azure Spring Cloud Documentation
  3. Quickstart: Set up Azure Spring Cloud Config Server

2m