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
Before running this command, replace the placeholder in between the `<>` brackets with your user or service principal ID.
176
+
176
177
```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
181
182
```
182
183
183
184
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
193
194
1. Get the URL of the Eureka Server for Spring dashboard.
194
195
195
196
```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
201
202
```
202
203
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.
204
205
205
206
:::image type="content" source="media/java-components/sba.png" alt-text="Screenshot of the Admin for Spring dashboard." lightbox="media/java-components/sba.png":::
Copy file name to clipboardExpand all lines: articles/container-apps/java-admin.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ Now that you have an existing environment, you can create your container app and
163
163
164
164
Make sure to replace placeholder in between the `<>` brackets in the `AssignableScopes` value with your subscription ID.
165
165
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.
167
167
168
168
Get the resource id of the managed environment:
169
169
@@ -175,15 +175,15 @@ Now that you have an existing environment, you can create your container app and
175
175
176
176
1. Assign the role to the your account.
177
177
178
+
Before running this command, replace the placeholder in between the `<>` brackets with your user or service principal ID.
179
+
178
180
```azurecli
179
181
az role assignment create \
180
182
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
181
183
--role "Java Component Dashboard Access" \
182
184
--scope $ENVIRONMENT_ID
183
185
```
184
186
185
-
Make sure to replace the placeholder in between the `<>` brackets with your user or service principal ID.
186
-
187
187
1. Get the URL of the Admin for Spring dashboard.
188
188
189
189
```azurecli
@@ -203,8 +203,8 @@ Now that you have an existing environment, you can create your container app and
203
203
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.
## Bind your container app to the Eureka Server for Spring Java component
117
117
118
118
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
150
150
151
151
You can also [remove a binding](java-eureka-server-usage.md#unbind) from your application.
152
152
153
-
## View the application in Eureka Server for Spring dashboards
153
+
## View the application through a dashboard
154
154
155
155
> [!IMPORTANT]
156
156
> 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
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.
174
175
175
176
Get the resource id of the managed environment:
176
177
@@ -181,43 +182,48 @@ Now that you have an existing environment, you can create your container app and
181
182
```
182
183
183
184
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
+
185
188
```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
190
193
```
191
194
192
195
1. Get the URL of the Eureka Server for Spring dashboard.
193
196
194
197
```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
200
203
```
201
204
202
-
You should be able to access the Eureka Server forSpring dashboard using the URL provided. And the container app should be visiblein the dashboard like the screenshot below:
205
+
This command returns the URL you can use to access the Eureka Server forSpring dashboard. Through the dashboard, you container app is also to you as shownin the following screenshot.
203
206
204
207
:::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":::
205
208
206
209
## Optional: Integrate the Eureka Server for Spring and Admin for Spring Java components
207
210
208
-
If you want to integrate the Eureka Server forSpring and the Admin for Spring Java components, you can follow the stepsin 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).
209
212
210
213
## Clean up resources
211
214
212
215
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.
213
216
214
217
```azurecli
215
-
az group delete \
216
-
--resource-group $RESOURCE_GROUP
218
+
az group delete \
219
+
--resource-group $RESOURCE_GROUP
217
220
```
218
221
219
222
## Next steps
220
223
221
224
> [!div class="nextstepaction"]
222
225
> [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)
0 commit comments