epomatti / azure-app-configuration

Azure App Configuration sandbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure App Configuration sandbox

Sandbox with App Config.

Run

Create the app configuration resource:

cd infra

terraform init
terraform apply -auto-approve

Set the connection string as parameter:

export APP_CONFIGURATION_CONNECTION_STRING='connection-string-of-your-app-configuration-store'

Build and run the application:

mvn clean package
mvn spring-boot:run

Check the parameter value:

curl localhost:8080/message

Change the message and then update the refresh trigger. Check the message again to see the update value.

az appconfig kv set --key sentinel --value 2 --name <name-of-your-new-store> --yes

This will use the Feature capability from the API:

curl localhost:8080/beta

Reference

About

Azure App Configuration sandbox

License:MIT License


Languages

Language:HCL 55.6%Language:Java 44.4%