Skip to content

Commit c8df823

Browse files
committed
fix
1 parent 12ad050 commit c8df823

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

articles/spring-apps/enterprise/how-to-enterprise-config-server.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,28 @@ This article shows you how to configure a managed Spring Cloud Config Server in
2424
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).
2525

2626
::: zone pivot="sc-standard"
27+
2728
> [!NOTE]
2829
> 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+
2931
::: zone-end
3032

3133
## Prerequisites
3234

3335
- 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+
3437
::: zone pivot="sc-standard"
38+
3539
- 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+
3641
::: zone-end
42+
3743
::: zone pivot="sc-enterprise"
44+
3845
- 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+
3947
::: zone-end
48+
4049
- [Git](https://git-scm.com/downloads).
4150

4251
## Restriction
@@ -151,10 +160,15 @@ The following table shows some examples of patterns for configuring your service
151160
| *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. |
152161

153162
::: zone pivot="sc-standard"
163+
154164
:::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+
155166
::: zone-end
167+
156168
::: zone pivot="sc-enterprise"
169+
157170
:::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+
158172
::: zone-end
159173

160174
## Configure Git repository against Config Server
@@ -172,19 +186,29 @@ Now that your configuration files are saved in a repository, use the following s
172186
1. Select **Validate**.
173187

174188
::: zone pivot="sc-standard"
189+
175190
:::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+
176192
::: zone-end
193+
177194
::: zone pivot="sc-enterprise"
195+
178196
:::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+
179198
::: zone-end
180199

181200
1. When validation is complete, select **Apply** to save your changes.
182201

183202
::: zone pivot="sc-standard"
203+
184204
:::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+
185206
::: zone-end
207+
186208
::: zone pivot="sc-enterprise"
209+
187210
:::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+
188212
::: zone-end
189213

190214
Updating the configuration can take a few minutes. You should get a notification when the configuration is complete.
@@ -236,10 +260,15 @@ spring:
236260
Select the **Import settings** button, and then select the YAML file from your project directory. Select **Import**.
237261
238262
::: zone pivot="sc-standard"
263+
239264
:::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+
240266
::: zone-end
267+
241268
::: zone pivot="sc-enterprise"
269+
242270
:::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+
243272
::: zone-end
244273
245274
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.
290319
:::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.":::
291320

292321
::: zone pivot="sc-enterprise"
322+
293323
### **Bind** **an app** to Spring Cloud Config Server
294324

295325
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 \
323353
You can also bind your application to the Spring Cloud Config Server from the Azure portal, as shown in the following screenshot:
324354

325355
:::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+
326357
::: zone-end
327358

328359
## Delete your configuration
@@ -394,6 +425,7 @@ Instead, you can automatically refresh values from Config Server by letting the
394425
For more information, see the [config-client-polling](https://github.com/Azure-Samples/azure-spring-apps-samples/tree/main/config-client-polling) sample.
395426

396427
::: zone pivot="sc-enterprise"
428+
397429
## Enable/disable Spring Cloud Config Server after service creation
398430

399431
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 \
423455
--service <Azure-Spring-Apps-service-instance-name>
424456
```
425457
---
458+
426459
::: zone-end
427460

428461
## Next steps

0 commit comments

Comments
 (0)