Skip to content

Commit 05c07a0

Browse files
updates
1 parent d1f10e9 commit 05c07a0

File tree

4 files changed

+52
-45
lines changed

4 files changed

+52
-45
lines changed

articles/container-apps/java-admin-eureka-integration.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -154,30 +154,31 @@ With the Eureka Server set up, you can now bind other applications to it for ser
154154
"Actions": [
155155
"Microsoft.App/managedEnvironments/write"
156156
],
157-
"AssignableScopes": ["/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
157+
"AssignableScopes": ["/subscriptions/<SUBSCRIPTION_ID>"]
158158
}'
159159
```
160160
161-
Please replace the `AssignableScopes` value with your subscription id.
162-
161+
Make sure to replace placeholder in between the `<>` brackets in the `AssignableScopes` value with your subscription ID.
163162
164-
1. Assign the Custom Role to your accound on managed environment resource.
163+
1. Assign the custom role to your account on managed environment resource.
165164
166165
Get the resource id of the managed environment.
167166
168167
```azurecli
169-
export ENVIRONMENT_ID=$(az containerapp env show \
170-
--name $ENVIRONMENT --resource-group $RESOURCE_GROUP \
171-
--query id -o tsv)
168+
export ENVIRONMENT_ID=$(az containerapp env show \
169+
--name $ENVIRONMENT --resource-group $RESOURCE_GROUP \
170+
--query id -o tsv)
172171
```
173172
174173
1. Assign the role to the your account.
175-
174+
175+
Before running this command, replace the placeholder in between the `<>` brackets with your user or service principal ID.
176+
176177
```azurecli
177-
az role assignment create \
178-
--assignee <user-or-service-principal-id> \
179-
--role "Java Component Dashboard Access" \
180-
--scope $ENVIRONMENT_ID
178+
az role assignment create \
179+
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
180+
--role "Java Component Dashboard Access" \
181+
--scope $ENVIRONMENT_ID
181182
```
182183
183184
1. Get the URL of the Admin for Spring dashboard.
@@ -193,14 +194,14 @@ With the Eureka Server set up, you can now bind other applications to it for ser
193194
1. Get the URL of the Eureka Server for Spring dashboard.
194195
195196
```azurecli
196-
az containerapp env java-component eureka-server-for-spring show \
197-
--environment $ENVIRONMENT \
198-
--resource-group $RESOURCE_GROUP \
199-
--name $EUREKA_COMPONENT_NAME \
200-
--query properties.ingress.fqdn -o tsv
197+
az containerapp env java-component eureka-server-for-spring show \
198+
--environment $ENVIRONMENT \
199+
--resource-group $RESOURCE_GROUP \
200+
--name $EUREKA_COMPONENT_NAME \
201+
--query properties.ingress.fqdn -o tsv
201202
```
202203
203-
You should be able to access the Admin for Spring dashboard and the Eureka Server for Spring dashboard using the URLs provided. And the container app as well as the Admin for Spring server should be visible in both dashboards like screenshots below:
204+
This command returns the URL you can use to access the Eureka Server for Spring dashboard. Through the dashboard, you container app is also to you as shown in the following screenshot.
204205
205206
:::image type="content" source="media/java-components/sba.png" alt-text="Screenshot of the Admin for Spring dashboard." lightbox="media/java-components/sba.png":::
206207

articles/container-apps/java-admin.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Now that you have an existing environment, you can create your container app and
163163

164164
Make sure to replace placeholder in between the `<>` brackets in the `AssignableScopes` value with your subscription ID.
165165

166-
1. Assign the Custom Role to your account on managed environment resource.
166+
1. Assign the custom role to your account on managed environment resource.
167167

168168
Get the resource id of the managed environment:
169169

@@ -175,15 +175,15 @@ Now that you have an existing environment, you can create your container app and
175175

176176
1. Assign the role to the your account.
177177

178+
Before running this command, replace the placeholder in between the `<>` brackets with your user or service principal ID.
179+
178180
```azurecli
179181
az role assignment create \
180182
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
181183
--role "Java Component Dashboard Access" \
182184
--scope $ENVIRONMENT_ID
183185
```
184186

185-
Make sure to replace the placeholder in between the `<>` brackets with your user or service principal ID.
186-
187187
1. Get the URL of the Admin for Spring dashboard.
188188

189189
```azurecli
@@ -203,8 +203,8 @@ Now that you have an existing environment, you can create your container app and
203203
The resources created in this tutorial have an effect on your Azure bill. If you aren't going to use these services long-term, run the following command to remove everything created in this tutorial.
204204
205205
```azurecli
206-
az group delete \
207-
--resource-group $RESOURCE_GROUP
206+
az group delete \
207+
--resource-group $RESOURCE_GROUP
208208
```
209209
210210
## Next steps

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

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: craigshoemaker
66
ms.service: container-apps
77
ms.custom: devx-track-extended-java
88
ms.topic: conceptual
9-
ms.date: 03/15/2024
9+
ms.date: 07/03/2024
1010
ms.author: cshoe
1111
---
1212

@@ -103,7 +103,6 @@ Now that you have an existing environment, you can create your container app and
103103
--name $EUREKA_COMPONENT_NAME
104104
```
105105

106-
107106
1. Optional: Update the Eureka Server for Spring Java component configuration.
108107

109108
```azurecli
@@ -113,6 +112,7 @@ Now that you have an existing environment, you can create your container app and
113112
--name $EUREKA_COMPONENT_NAME
114113
--configuration eureka.server.renewal-percent-threshold=0.85 eureka.server.eviction-interval-timer-in-ms=10000
115114
```
115+
116116
## Bind your container app to the Eureka Server for Spring Java component
117117

118118
1. Create the container app and bind to the Eureka Server for Spring.
@@ -150,7 +150,7 @@ Now that you have an existing environment, you can create your container app and
150150

151151
You can also [remove a binding](java-eureka-server-usage.md#unbind) from your application.
152152

153-
## View the application in Eureka Server for Spring dashboards
153+
## View the application through a dashboard
154154

155155
> [!IMPORTANT]
156156
> To view the dashboard, you need to have at least the `Microsoft.App/managedEnvironments/write` role assigned to your account on the managed environment resource. You can either explicitly assign `Owner` or `Contributor` role on the resource or follow the steps to create a custom role definition and assign it to your account.
@@ -165,12 +165,13 @@ Now that you have an existing environment, you can create your container app and
165165
"Actions": [
166166
"Microsoft.App/managedEnvironments/write"
167167
],
168-
"AssignableScopes": ["/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
168+
"AssignableScopes": ["/subscriptions/<SUBSCRIPTION_ID>"]
169169
}'
170170
```
171-
Please replace the `AssignableScopes` value with your subscription id.
172-
173-
1. Assign the Custom Role to your accound on managed environment resource.
171+
172+
Make sure to replace placeholder in between the `<>` brackets in the `AssignableScopes` value with your subscription ID.
173+
174+
1. Assign the custom role to your account on managed environment resource.
174175

175176
Get the resource id of the managed environment:
176177

@@ -181,43 +182,48 @@ Now that you have an existing environment, you can create your container app and
181182
```
182183

183184
1. Assign the role to the your account.
184-
185+
186+
Before running this command, replace the placeholder in between the `<>` brackets with your user or service principal ID.
187+
185188
```azurecli
186-
az role assignment create \
187-
--assignee <user-or-service-principal-id> \
188-
--role "Java Component Dashboard Access" \
189-
--scope $ENVIRONMENT_ID
189+
az role assignment create \
190+
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
191+
--role "Java Component Dashboard Access" \
192+
--scope $ENVIRONMENT_ID
190193
```
191194

192195
1. Get the URL of the Eureka Server for Spring dashboard.
193196

194197
```azurecli
195-
az containerapp env java-component eureka-server-for-spring show \
196-
--environment $ENVIRONMENT \
197-
--resource-group $RESOURCE_GROUP \
198-
--name $EUREKA_COMPONENT_NAME \
199-
--query properties.ingress.fqdn -o tsv
198+
az containerapp env java-component eureka-server-for-spring show \
199+
--environment $ENVIRONMENT \
200+
--resource-group $RESOURCE_GROUP \
201+
--name $EUREKA_COMPONENT_NAME \
202+
--query properties.ingress.fqdn -o tsv
200203
```
201204

202-
You should be able to access the Eureka Server for Spring dashboard using the URL provided. And the container app should be visible in the dashboard like the screenshot below:
205+
This command returns the URL you can use to access the Eureka Server for Spring dashboard. Through the dashboard, you container app is also to you as shown in the following screenshot.
203206

204207
:::image type="content" source="media/java-components/eureka-alone.png" alt-text="Screenshot of the Eureka Server for Spring dashboard." lightbox="media/java-components/eureka-alone.png":::
205208

206209
## Optional: Integrate the Eureka Server for Spring and Admin for Spring Java components
207210

208-
If you want to integrate the Eureka Server for Spring and the Admin for Spring Java components, you can follow the steps in the [Tutorial: Integrate the managed Admin for Spring with Eureka Server for Spring](java-admin-eureka-integration.md).
211+
If you want to integrate the Eureka Server for Spring and the Admin for Spring Java components, see [Integrate the managed Admin for Spring with Eureka Server for Spring](java-admin-eureka-integration.md).
209212

210213
## Clean up resources
211214

212215
The resources created in this tutorial have an effect on your Azure bill. If you aren't going to use these services long-term, run the following command to remove everything created in this tutorial.
213216
214217
```azurecli
215-
az group delete \
216-
--resource-group $RESOURCE_GROUP
218+
az group delete \
219+
--resource-group $RESOURCE_GROUP
217220
```
218221
219222
## Next steps
220223
221224
> [!div class="nextstepaction"]
222225
> [Configure Eureka Server for Spring settings](java-eureka-server-usage.md)
223-
> [Tutorial: Integrate the managed Admin for Spring with Eureka Server for Spring](java-admin-eureka-integration.md)
226+
227+
## Related content
228+
229+
- [Integrate the managed Admin for Spring with Eureka Server for Spring](java-admin-eureka-integration.md)
-52.8 KB
Loading

0 commit comments

Comments
 (0)