Skip to content

Commit 903fff7

Browse files
author
Wenhao Zhang
committed
Update format
1 parent 10b55ef commit 903fff7

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

articles/container-apps/java-config-server.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ When running in Config Server for Spring in Azure Container Apps, be aware of th
5252

5353
Before you begin to work with the Config Server for Spring, you first need to create the required resources.
5454

55-
# [Azure CLI](#tab/azure-cli)
55+
### [Azure CLI](#tab/azure-cli)
5656

5757
Execute the following commands to create your resource group and Container Apps environment.
5858

@@ -98,7 +98,7 @@ Execute the following commands to create your resource group and Container Apps
9898
--location $LOCATION
9999
```
100100
101-
# [Azure portal](#tab/azure-portal)
101+
### [Azure portal](#tab/azure-portal)
102102
103103
Follow the following steps to create the resource group, client container app and container apps environment.
104104
@@ -150,7 +150,7 @@ This environment is used to host both the Config Server for Spring component and
150150
151151
Now that you have a Container Apps environment, you can create your container app and bind it to a Config Server for Spring component. When you bind your container app, configuration values automatically synchronize from the Config Server component to your application.
152152
153-
# [Azure CLI](#tab/azure-cli)
153+
### [Azure CLI](#tab/azure-cli)
154154
1. Create the Config Server for Spring Java component.
155155
156156
```azurecli
@@ -172,7 +172,7 @@ Now that you have a Container Apps environment, you can create your container ap
172172
```
173173
174174
Here, you're telling the component where to find the repository that holds your configuration information via the `uri` property. The `refresh-rate` property tells Container Apps how often to check for changes in your git repository.
175-
# [Azure portal](#tab/azure-portal)
175+
### [Azure portal](#tab/azure-portal)
176176

177177
Now that you have an existing environment and config server client container app, create a Java component instance of Config Server for Spring.
178178

@@ -198,7 +198,7 @@ Now that you have an existing environment and config server client container app
198198

199199
## Bind your container app to the Config Server for Spring Java component
200200

201-
# [Azure CLI](#tab/azure-cli)
201+
### [Azure CLI](#tab/azure-cli)
202202
1. Create the container app that consumes configuration data.
203203

204204
```azurecli
@@ -231,7 +231,7 @@ Now that you have an existing environment and config server client container app
231231

232232
The `--bind $JAVA_COMPONENT_NAME` parameter creates the link between your container app and the configuration component.
233233

234-
# [Azure portal](#tab/azure-portal)
234+
### [Azure portal](#tab/azure-portal)
235235

236236
1. Go to your container app environment page, select *Service* on the left panel
237237
2. Select *configserver* in Service list
@@ -263,7 +263,7 @@ If you want to customize your own `SPRING_CONFIG_IMPORT`, you can refer to the e
263263
You can also remove a binding from your application.
264264

265265
## Unbind your container app from the Config Server for Spring Java component
266-
# [Azure CLI](#tab/azure-cli)
266+
### [Azure CLI](#tab/azure-cli)
267267
To remove a binding from a container app, use the `--unbind` option.
268268

269269
``` azurecli
@@ -272,7 +272,7 @@ You can also remove a binding from your application.
272272
--unbind $JAVA_COMPONENT_NAME \
273273
--resource-group $RESOURCE_GROUP
274274
```
275-
# [Azure portal](#tab/azure-portal)
275+
### [Azure portal](#tab/azure-portal)
276276
1. Go to your container app environment page, select *Service* on the left panel
277277
2. Select *configserver* in Service list
278278
3. Under bindings, select app *my-config-client*, Click *Next*

articles/container-apps/java-eureka-server.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ When running in Eureka Server for Spring in Azure Container Apps, be aware of th
4848

4949
Before you begin to work with the Eureka Server for Spring, you first need to create the required resources.
5050

51-
# [Azure CLI](#tab/azure-cli)
51+
### [Azure CLI](#tab/azure-cli)
5252

5353
Execute the following commands to create your resource group, container apps environment.
5454

@@ -91,55 +91,55 @@ Execute the following commands to create your resource group, container apps env
9191
--resource-group $RESOURCE_GROUP \
9292
--location $LOCATION
9393
```
94-
# [Azure portal](#tab/azure-portal)
94+
### [Azure portal](#tab/azure-portal)
9595

9696
Follow the following steps to create the resource group, client container app and container apps environment.
9797

98-
1. Search for *Container Apps* in the Azure portal and select *Create*
99-
2. Enter the following values to *Basics* tab. You need to select *Create new* in *Resource group* and *Container Apps Environment* to create the new resource.
98+
1. Search for **Container Apps** in the Azure portal and select **Create**
99+
2. Enter the following values to **Basics** tab. You need to select **Create new** in **Resource group** and **Container Apps Environment** to create the new resource.
100100

101101
| Setting | Value |
102102
|---|---|
103-
| Subscription | *Your own subscription* |
104-
| Resource group | *my-services-resource-group* |
105-
| Container app name | *sample-service-eureka-client* |
106-
| Deployment source | *Container image* |
107-
| Region | *East US* |
108-
| Container Apps Environment | *my-environment* |
103+
| Subscription | Your own subscription |
104+
| Resource group | my-services-resource-group |
105+
| Container app name | sample-service-eureka-client |
106+
| Deployment source | Container image |
107+
| Region | East US |
108+
| Container Apps Environment | my-environment |
109109

110110
:::image type="content" source="media/java-components/create-containerapp-eureka.png" alt-text="Screenshot of create container apps." lightbox="media/java-components/create-containerapp-eureka.png":::
111111

112-
1. In *Container* tab, select or enter the following values and leave others be the default.
112+
1. In **Container** tab, select or enter the following values and leave others be the default.
113113

114114
| Setting | Value |
115115
|---|---|
116-
| Name | *sample-service-eureka-client* |
117-
| Image source | *Docker Hub or other registeries* |
118-
| Image type | *Public* |
119-
| Registry login server | *mcr.microsoft.com* |
120-
| Image and tag | *javacomponents/samples/sample-service-eureka-client:latest* |
116+
| Name | sample-service-eureka-client |
117+
| Image source | Docker Hub or other registeries |
118+
| Image type | Public |
119+
| Registry login server | mcr.microsoft.com |
120+
| Image and tag | javacomponents/samples/sample-service-eureka-client:latest |
121121

122122
:::image type="content" source="media/java-components/select-eureka-image.png" alt-text="Screenshot of select image when create container apps." lightbox="media/java-components/select-eureka-image.png":::
123123

124-
1. In Ingress tab, select or enter the following values and leave others be the default, then click *Review + create*
124+
1. In Ingress tab, select or enter the following values and leave others be the default, then click **Review + create**
125125

126126
| Setting | Value |
127127
|---|---|
128-
| Ingress | *Enabled* |
129-
| Ingress traffic | *Accepting traffic from anywhere* |
130-
| Ingress type | *HTTP* |
131-
| Transport | *Auto* |
132-
| Target port | *8080* |
128+
| Ingress | Enabled |
129+
| Ingress traffic | Accepting traffic from anywhere |
130+
| Ingress type | HTTP |
131+
| Transport | Auto |
132+
| Target port | 8080 |
133133

134134
:::image type="content" source="media/java-components/config-ingress.png" alt-text="Screenshot of config ingress when create container apps." lightbox="media/java-components/config-ingress.png":::
135135

136-
1. Click *Create* after validation passed
136+
1. Click **Create** after validation passed
137137

138138
---
139139

140140
## Create the Eureka Server for Spring Java component
141141

142-
# [Azure CLI](#tab/azure-cli)
142+
### [Azure CLI](#tab/azure-cli)
143143

144144
Now that you have an existing environment, you can create your container app and bind it to a Java component instance of Eureka Server for Spring.
145145

@@ -162,28 +162,28 @@ Now that you have an existing environment, you can create your container app and
162162
--configuration eureka.server.renewal-percent-threshold=0.85 eureka.server.eviction-interval-timer-in-ms=10000
163163
```
164164

165-
# [Azure portal](#tab/azure-portal)
165+
### [Azure portal](#tab/azure-portal)
166166

167167
Now that you have an existing environment and eureka client container app, create a Java component instance of Eureka Server for Spring.
168168

169-
1. Go to your container app environment page, select *Service* on the left panel, and then select *Configure*, *Java component*
169+
1. Go to your container app environment page, select **Service** on the left panel, and then select **Configure**, **Java component**
170170

171171
:::image type="content" source="media/java-components/select-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/select-java-component.png":::
172172

173-
1. In new *Configure Java component* panel, select or enter the following values and leave others be the default, and then select *Next*
173+
1. In new **Configure Java component** panel, select or enter the following values and leave others be the default, and then select **Next**
174174

175175
| Setting | Value |
176176
|---|---|
177-
| Java component type | *Eureka Server for Spring* |
178-
| Java component name | *eureka* |
177+
| Java component type | Eureka Server for Spring |
178+
| Java component name | eureka |
179179

180180
:::image type="content" source="media/java-components/create-eureka-java-component.png" alt-text="Screenshot of how to create Eureka Java component." lightbox="media/java-components/create-eureka-java-component.png":::
181181

182-
1. Click *Configure* on *Review* page
182+
1. Click **Configure** on **Review** page
183183
---
184184

185185
## Bind your container app to the Eureka Server for Spring Java component
186-
# [Azure CLI](#tab/azure-cli)
186+
### [Azure CLI](#tab/azure-cli)
187187

188188
1. Create the container app and bind to the Eureka Server for Spring.
189189

@@ -200,15 +200,15 @@ Now that you have an existing environment and eureka client container app, creat
200200
--bind $EUREKA_COMPONENT_NAME \
201201
--query properties.configuration.ingress.fqdn
202202
```
203-
# [Azure portal](#tab/azure-portal)
204-
1. Go to your container app environment page, select *Service* on the left panel
205-
2. Select *eureka* in Service list
206-
3. Under bindings, select app *sample-service-eureka-client*, Click *Next*
207-
4. Click *Configure*
203+
### [Azure portal](#tab/azure-portal)
204+
1. Go to your container app environment page, select **Service** on the left panel
205+
2. Select **eureka** in Service list
206+
3. Under bindings, select app **sample-service-eureka-client**, Click **Next**
207+
4. Click **Configure**
208208

209209
:::image type="content" source="media/java-components/app-bind-eureka.png" alt-text="Screenshot of container app bind with eureka." lightbox="media/java-components/app-bind-eureka.png":::
210210

211-
5. Go to your container app *sample-service-eureka-client* page, get the *Application URL* of the container app
211+
5. Go to your container app **sample-service-eureka-client** page, get the **Application URL** of the container app
212212
---
213213

214214
After you get the URL of the container app. Copy the URL to a text editor so you can use it in a coming step.
@@ -230,7 +230,7 @@ The `eureka.instance.prefer-ip-address` is set to `true` due to the specific DNS
230230

231231
## Unbind your container app from the Eureka Server for Spring Java component
232232

233-
# [Azure CLI](#tab/azure-cli)
233+
### [Azure CLI](#tab/azure-cli)
234234
To remove a binding from a container app, use the `--unbind` option.
235235

236236
``` azurecli
@@ -239,11 +239,11 @@ To remove a binding from a container app, use the `--unbind` option.
239239
--unbind $JAVA_COMPONENT_NAME \
240240
--resource-group $RESOURCE_GROUP
241241
```
242-
# [Azure portal](#tab/azure-portal)
243-
1. Go to your container app environment page, select *Service* on the left panel
244-
2. Select *eureka* in Service list
245-
3. Under bindings, select Delete after app *sample-service-eureka-client*, Click *Next*
246-
4. Click *Configure*
242+
### [Azure portal](#tab/azure-portal)
243+
1. Go to your container app environment page, select **Service** on the left panel
244+
2. Select **eureka** in Service list
245+
3. Under bindings, select Delete after app **sample-service-eureka-client**, Click **Next**
246+
4. Click **Configure**
247247

248248
:::image type="content" source="media/java-components/app-unbind-eureka.png" alt-text="Screenshot of container app unbind with eureka." lightbox="media/java-components/app-unbind-eureka.png":::
249249

0 commit comments

Comments
 (0)