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/container-apps/java-config-server.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ When running in Config Server for Spring in Azure Container Apps, be aware of th
52
52
53
53
Before you begin to work with the Config Server for Spring, you first need to create the required resources.
54
54
55
-
# [Azure CLI](#tab/azure-cli)
55
+
###[Azure CLI](#tab/azure-cli)
56
56
57
57
Execute the following commands to create your resource group and Container Apps environment.
58
58
@@ -98,7 +98,7 @@ Execute the following commands to create your resource group and Container Apps
98
98
--location $LOCATION
99
99
```
100
100
101
-
# [Azure portal](#tab/azure-portal)
101
+
### [Azure portal](#tab/azure-portal)
102
102
103
103
Follow the following steps to create the resource group, client container app and container apps environment.
104
104
@@ -150,7 +150,7 @@ This environment is used to host both the Config Server for Spring component and
150
150
151
151
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.
152
152
153
-
# [Azure CLI](#tab/azure-cli)
153
+
### [Azure CLI](#tab/azure-cli)
154
154
1. Create the Config Server for Spring Java component.
155
155
156
156
```azurecli
@@ -172,7 +172,7 @@ Now that you have a Container Apps environment, you can create your container ap
172
172
```
173
173
174
174
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 forchangesin your git repository.
175
-
# [Azure portal](#tab/azure-portal)
175
+
### [Azure portal](#tab/azure-portal)
176
176
177
177
Now that you have an existing environment and config server client container app, create a Java component instance of Config Server for Spring.
178
178
@@ -198,7 +198,7 @@ Now that you have an existing environment and config server client container app
198
198
199
199
## Bind your container app to the Config Server for Spring Java component
200
200
201
-
# [Azure CLI](#tab/azure-cli)
201
+
### [Azure CLI](#tab/azure-cli)
202
202
1. Create the container app that consumes configuration data.
203
203
204
204
```azurecli
@@ -231,7 +231,7 @@ Now that you have an existing environment and config server client container app
231
231
232
232
The `--bind $JAVA_COMPONENT_NAME` parameter creates the link between your container app and the configuration component.
233
233
234
-
# [Azure portal](#tab/azure-portal)
234
+
### [Azure portal](#tab/azure-portal)
235
235
236
236
1. Go to your container app environment page, select*Service* on the left panel
237
237
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
263
263
You can also remove a binding from your application.
264
264
265
265
## Unbind your container app from the Config Server for Spring Java component
266
-
# [Azure CLI](#tab/azure-cli)
266
+
### [Azure CLI](#tab/azure-cli)
267
267
To remove a binding from a container app, use the `--unbind` option.
268
268
269
269
``` azurecli
@@ -272,7 +272,7 @@ You can also remove a binding from your application.
272
272
--unbind $JAVA_COMPONENT_NAME \
273
273
--resource-group $RESOURCE_GROUP
274
274
```
275
-
# [Azure portal](#tab/azure-portal)
275
+
### [Azure portal](#tab/azure-portal)
276
276
1. Go to your container app environment page, select*Service* on the left panel
277
277
2. Select *configserver*in Service list
278
278
3. Under bindings, selectapp*my-config-client*, Click *Next*
Copy file name to clipboardExpand all lines: articles/container-apps/java-eureka-server.md
+43-43Lines changed: 43 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ When running in Eureka Server for Spring in Azure Container Apps, be aware of th
48
48
49
49
Before you begin to work with the Eureka Server for Spring, you first need to create the required resources.
50
50
51
-
# [Azure CLI](#tab/azure-cli)
51
+
###[Azure CLI](#tab/azure-cli)
52
52
53
53
Execute the following commands to create your resource group, container apps environment.
54
54
@@ -91,55 +91,55 @@ Execute the following commands to create your resource group, container apps env
91
91
--resource-group $RESOURCE_GROUP \
92
92
--location $LOCATION
93
93
```
94
-
# [Azure portal](#tab/azure-portal)
94
+
### [Azure portal](#tab/azure-portal)
95
95
96
96
Follow the following steps to create the resource group, client container app and container apps environment.
97
97
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.
100
100
101
101
| Setting | Value |
102
102
|---|---|
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 |
109
109
110
110
:::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":::
111
111
112
-
1. In *Container* tab, selector enter the following values and leave others be the default.
112
+
1. In **Container** tab, selector enter the following values and leave others be the default.
113
113
114
114
| Setting | Value |
115
115
|---|---|
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 |
121
121
122
122
:::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":::
123
123
124
-
1. In Ingress tab, selector enter the following values and leave others be the default, then click *Review + create*
124
+
1. In Ingress tab, selector enter the following values and leave others be the default, then click **Review + create**
125
125
126
126
| Setting | Value |
127
127
|---|---|
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 |
133
133
134
134
:::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":::
135
135
136
-
1. Click *Create* after validation passed
136
+
1. Click **Create** after validation passed
137
137
138
138
---
139
139
140
140
## Create the Eureka Server for Spring Java component
141
141
142
-
# [Azure CLI](#tab/azure-cli)
142
+
### [Azure CLI](#tab/azure-cli)
143
143
144
144
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.
145
145
@@ -162,28 +162,28 @@ Now that you have an existing environment, you can create your container app and
Now that you have an existing environment and eureka client container app, create a Java component instance of Eureka Server for Spring.
168
168
169
-
1. Go to your container app environment page, select*Service* on the left panel, and thenselect*Configure*,*Java component*
169
+
1. Go to your container app environment page, select**Service** on the left panel, and thenselect**Configure**,**Java component**
170
170
171
171
:::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":::
172
172
173
-
1. In new *Configure Java component* panel, selector enter the following values and leave others be the default, and thenselect*Next*
173
+
1. In new **Configure Java component** panel, selector enter the following values and leave others be the default, and thenselect**Next**
174
174
175
175
| Setting | Value |
176
176
|---|---|
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 |
179
179
180
180
:::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":::
181
181
182
-
1. Click *Configure* on *Review* page
182
+
1. Click **Configure** on **Review** page
183
183
---
184
184
185
185
## Bind your container app to the Eureka Server for Spring Java component
186
-
# [Azure CLI](#tab/azure-cli)
186
+
### [Azure CLI](#tab/azure-cli)
187
187
188
188
1. Create the container app and bind to the Eureka Server for Spring.
189
189
@@ -200,15 +200,15 @@ Now that you have an existing environment and eureka client container app, creat
200
200
--bind $EUREKA_COMPONENT_NAME \
201
201
--query properties.configuration.ingress.fqdn
202
202
```
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, selectapp*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, selectapp**sample-service-eureka-client**, Click **Next**
207
+
4. Click **Configure**
208
208
209
209
:::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":::
210
210
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
212
212
---
213
213
214
214
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
230
230
231
231
## Unbind your container app from the Eureka Server for Spring Java component
232
232
233
-
# [Azure CLI](#tab/azure-cli)
233
+
### [Azure CLI](#tab/azure-cli)
234
234
To remove a binding from a container app, use the `--unbind` option.
235
235
236
236
``` azurecli
@@ -239,11 +239,11 @@ To remove a binding from a container app, use the `--unbind` option.
239
239
--unbind $JAVA_COMPONENT_NAME \
240
240
--resource-group $RESOURCE_GROUP
241
241
```
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, selectDelete 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, selectDelete after app **sample-service-eureka-client**, Click **Next**
246
+
4. Click **Configure**
247
247
248
248
:::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":::
0 commit comments