Skip to content

Commit b6747af

Browse files
Merge pull request #250694 from mrm9084/SpringSnapshots
App Configuration Spring Snapshots
2 parents 94b8982 + 3332f70 commit b6747af

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

articles/azure-app-configuration/howto-create-snapshots.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,32 @@ configurationBuilder.AddAzureAppConfiguration(options =>
116116
> - `Microsoft.Azure.AppConfiguration.AspNetCore`
117117
> - `Microsoft.Azure.AppConfiguration.Functions.Worker`
118118
119+
### [Spring](#tab/spring)
120+
121+
Update the `bootstrap.yml` file of your application with the following configurations.
122+
123+
```yml
124+
spring:
125+
cloud:
126+
azure:
127+
appconfiguration:
128+
stores:
129+
-
130+
endpoint: <your-endpoint>
131+
selects:
132+
-
133+
snapshot-name: <name-of-your-snapshot>
134+
trim-key-prefix:
135+
- <prefix-to-trim>
136+
```
137+
138+
> [!NOTE]
139+
> Any prefix such as `/application/` which is automatically trimmed when using a key filter will need to be specified for snapshots or they will not be properly mapped to the correct `@ConfigurationProperties` classes.
140+
> Snapshot support is available if you use version **4.12.0-beta.1**/**5.6.0-beta.1** or later of any of the following packages.
141+
> - `spring-cloud-azure-appconfiguration-config`
142+
> - `spring-cloud-azure-appconfiguration-config-web`
143+
> - `spring-cloud-azure-starter-appconfiguration-config`
144+
119145
---
120146

121147
## Manage active snapshots

0 commit comments

Comments
 (0)