This example assumes you have previously completed the following examples:
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.
Do NOT forget to remove the resources you created once you are done with the example.
- Commands to manage Azure Spring Apps
- Azure Spring Cloud Documentation
- Quickstart: Set up Azure Spring Cloud Config Server
2m