You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-enterprise-config-server.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,28 @@ This article shows you how to configure a managed Spring Cloud Config Server in
24
24
Spring Cloud Config Server provides server and client-side support for an externalized configuration in a distributed system. The Spring Cloud Config Server instance provides a central place to manage external properties for applications across all environments. For more information, see the [Spring Cloud Config documentation](https://spring.io/projects/spring-cloud-config).
25
25
26
26
::: zone pivot="sc-standard"
27
+
27
28
> [!NOTE]
28
29
> To use config server in the Standard consumption and dedicated plan, you must enable it first. For more information, see [Enable and disable Spring Cloud Config Server in Azure Spring Apps](../consumption-dedicated/quickstart-standard-consumption-config-server.md).
30
+
29
31
::: zone-end
30
32
31
33
## Prerequisites
32
34
33
35
- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
36
+
34
37
::: zone pivot="sc-standard"
38
+
35
39
- An already provisioned and running Azure Spring Apps service instance using the Basic or Standard plan. To set up and launch an Azure Spring Apps service, see [Quickstart: Deploy your first application to Azure Spring Apps](../enterprise/quickstart.md?pivots=sc-standard&toc=/azure/spring-apps/basic-standard/toc.json&bc=/azure/spring-apps/basic-standard/breadcrumb/toc.json).
40
+
36
41
::: zone-end
42
+
37
43
::: zone pivot="sc-enterprise"
44
+
38
45
- An already provisioned and running Azure Spring Apps service instance. To set up and launch an Azure Spring Apps service, see [Quickstart: Build and deploy apps to Azure Spring Apps using the Enterprise plan](../enterprise/quickstart.md?pivots=sc-enterprise&toc=/azure/spring-apps/enterprise/toc.json&bc=/azure/spring-apps/enterprise/breadcrumb/toc.json).
46
+
39
47
::: zone-end
48
+
40
49
-[Git](https://git-scm.com/downloads).
41
50
42
51
## Restriction
@@ -151,10 +160,15 @@ The following table shows some examples of patterns for configuring your service
151
160
|*test-config-server-app-2/prod*| The pattern and repository URI matches a Spring boot application named `test-config-server-app-2` with a prod profile. |
152
161
153
162
::: zone pivot="sc-standard"
163
+
154
164
:::image type="content" source="../basic-standard/media/how-to-config-server/additional-repositories.png" lightbox="media/how-to-config-server/additional-repositories.png" alt-text="Screenshot of Azure portal showing the Config Server page with the Patterns column of the Additional repositories table highlighted.":::
165
+
155
166
::: zone-end
167
+
156
168
::: zone pivot="sc-enterprise"
169
+
157
170
:::image type="content" source="media/how-to-enterprise-config-server/additional-repositories.png" lightbox="media/how-to-enterprise-config-server/additional-repositories.png" alt-text="Screenshot of Azure portal showing the Config Server page with the Patterns column of the Additional repositories table highlighted.":::
171
+
158
172
::: zone-end
159
173
160
174
## Configure Git repository against Config Server
@@ -172,19 +186,29 @@ Now that your configuration files are saved in a repository, use the following s
172
186
1. Select **Validate**.
173
187
174
188
::: zone pivot="sc-standard"
189
+
175
190
:::image type="content" source="../basic-standard/media/how-to-config-server/portal-config.png" lightbox="media/how-to-config-server/portal-config.png" alt-text="Screenshot of Azure portal showing the Config Server page.":::
191
+
176
192
::: zone-end
193
+
177
194
::: zone pivot="sc-enterprise"
195
+
178
196
:::image type="content" source="media/how-to-enterprise-config-server/portal-config.png" lightbox="media/how-to-enterprise-config-server/portal-config.png" alt-text="Screenshot of Azure portal showing the Config Server page.":::
197
+
179
198
::: zone-end
180
199
181
200
1. When validation is complete, select **Apply** to save your changes.
182
201
183
202
::: zone pivot="sc-standard"
203
+
184
204
:::image type="content" source="../basic-standard/media/how-to-config-server/validate-complete.png" lightbox="media/how-to-config-server/validate-complete.png" alt-text="Screenshot of Azure portal showing Config Server page with Apply button highlighted.":::
205
+
185
206
::: zone-end
207
+
186
208
::: zone pivot="sc-enterprise"
209
+
187
210
:::image type="content" source="media/how-to-enterprise-config-server/validate-complete.png" lightbox="media/how-to-enterprise-config-server/validate-complete.png" alt-text="Screenshot of Azure portal showing Config Server page with Apply button highlighted.":::
211
+
188
212
::: zone-end
189
213
190
214
Updating the configuration can take a few minutes. You should get a notification when the configuration is complete.
@@ -236,10 +260,15 @@ spring:
236
260
Select the **Import settings** button, and then select the YAML file from your project directory. Select **Import**.
237
261
238
262
::: zone pivot="sc-standard"
263
+
239
264
:::image type="content" source="../basic-standard/media/how-to-config-server/import-settings.png" lightbox="media/how-to-config-server/import-settings.png" alt-text="Screenshot of the Config Server Import settings pane.":::
265
+
240
266
::: zone-end
267
+
241
268
::: zone pivot="sc-enterprise"
269
+
242
270
:::image type="content" source="media/how-to-enterprise-config-server/import-settings.png" lightbox="media/how-to-enterprise-config-server/import-settings.png" alt-text="Screenshot of the Config Server Import settings pane.":::
271
+
243
272
::: zone-end
244
273
245
274
Your **Notifications** displays an `async` operation. Config Server should report success after 1-2 minutes. The information from your YAML file displays in the Azure portal. Select **Apply** to finish the import.
@@ -290,6 +319,7 @@ Use the following steps to get your repo URL and credentials.
290
319
:::image type="content" source="../basic-standard/media/how-to-config-server/config-server-azure-repos.png" lightbox="media/how-to-config-server/config-server-azure-repos.png" alt-text="Screenshot of repository configuration settings.":::
291
320
292
321
::: zone pivot="sc-enterprise"
322
+
293
323
### **Bind** **an app** to Spring Cloud Config Server
294
324
295
325
Use the following command to bind an app to Spring Cloud Config Server, enabling the app to pull configurations from Config Server.
@@ -323,6 +353,7 @@ az spring app create \
323
353
You can also bind your application to the Spring Cloud Config Server from the Azure portal, as shown in the following screenshot:
324
354
325
355
:::image type="content" source="media/how-to-enterprise-config-server/spring-cloud-config-server-bind-app-when-creation.png" alt-text="Screenshot of the Azure portal that shows the Create App page with the Bind dropdown highlighted.":::
356
+
326
357
::: zone-end
327
358
328
359
## Delete your configuration
@@ -394,6 +425,7 @@ Instead, you can automatically refresh values from Config Server by letting the
394
425
For more information, see the [config-client-polling](https://github.com/Azure-Samples/azure-spring-apps-samples/tree/main/config-client-polling) sample.
395
426
396
427
::: zone pivot="sc-enterprise"
428
+
397
429
## Enable/disable Spring Cloud Config Server after service creation
398
430
399
431
You can enable and disable Spring Cloud Config Server after service creation using the Azure portal or Azure CLI. Before disabling Spring Cloud Config Server, you're required to unbind all of your apps from it.
@@ -423,6 +455,7 @@ az spring config-server delete \
0 commit comments