Skip to content

Commit b4268f2

Browse files
small fixes
1 parent 05c07a0 commit b4268f2

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: "Tutorial: Integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps"
2+
title: "Tutorial: Integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps (preview)"
33
description: Learn to integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps.
44
services: container-apps
55
author:
66
ms.service: container-apps
77
ms.custom: devx-track-extended-java
88
ms.topic: conceptual
9-
ms.date: 05/24/2024
9+
ms.date: 07/03/2024
1010
ms.author:
1111
---
1212

13-
# Tutorial: Integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps (Preview)
13+
# Tutorial: Integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps (preview)
1414

1515
This tutorial will guide you through the process of integrating a managed Admin for Spring with a Eureka Server for Spring within Azure Container Apps.
1616

@@ -90,9 +90,12 @@ Before you begin, create the necessary resources by executing the following comm
9090
az containerapp env create \
9191
--name $ENVIRONMENT \
9292
--resource-group $RESOURCE_GROUP \
93-
--location $LOCATION
93+
--location $LOCATION \
94+
--query "properties.provisioningState"
9495
```
9596

97+
Using the `--query` parameter filters the response down to a simple success or failure message.
98+
9699
## Optional: Create the Eureka Server for Spring
97100

98101
1. If you don't have an existing Eureka Server for Spring, follow the command below to create the Eureka Server Java component. For more information, see [Create the Eureka Server for Spring](java-eureka-server.md#Create-the-Eureka-Server-for-Spring-Java-component).
@@ -104,7 +107,7 @@ Before you begin, create the necessary resources by executing the following comm
104107
--name $EUREKA_COMPONENT_NAME
105108
```
106109
107-
## Create the Admin for Spring and bind it to the Eureka Server for Spring
110+
## Bind the components together
108111
109112
1. Create the Admin for Spring Java component.
110113
@@ -116,12 +119,10 @@ Before you begin, create the necessary resources by executing the following comm
116119
--bind $EUREKA_COMPONENT_NAME
117120
```
118121
119-
120-
## Bind Other Applications to the Eureka Server
122+
## Bind other apps to the Eureka Server
121123
122124
With the Eureka Server set up, you can now bind other applications to it for service discovery. And you can also monitor and manage these applications in the dashboard of Admin for Spring. Follow the steps below to create and bind a container app to the Eureka Server:
123125
124-
125126
1. Create the container app and bind it to the Eureka Server.
126127
127128
```azurecli
@@ -139,7 +140,7 @@ With the Eureka Server set up, you can now bind other applications to it for ser
139140
140141
> [!TIP] Since the Admin for Spring has been binded to the Eureka Server for Spring in previous steps. Bind the container app to the Eureka Server Java component will enable service discovery and allow to be managed through the Admin for Spring dashboard at the same time.
141142
142-
## View the application in both Admin for Spring and Eureka Server for Spring dashboards
143+
## View the dashboards
143144
144145
> [!IMPORTANT]
145146
> 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.
@@ -184,11 +185,11 @@ With the Eureka Server set up, you can now bind other applications to it for ser
184185
1. Get the URL of the Admin for Spring dashboard.
185186
186187
```azurecli
187-
az containerapp env java-component admin-for-spring show \
188-
--environment $ENVIRONMENT \
189-
--resource-group $RESOURCE_GROUP \
190-
--name $ADMIN_COMPONENT_NAME \
191-
--query properties.ingress.fqdn -o tsv
188+
az containerapp env java-component admin-for-spring show \
189+
--environment $ENVIRONMENT \
190+
--resource-group $RESOURCE_GROUP \
191+
--name $ADMIN_COMPONENT_NAME \
192+
--query properties.ingress.fqdn -o tsv
192193
```
193194
194195
1. Get the URL of the Eureka Server for Spring dashboard.
@@ -212,7 +213,7 @@ With the Eureka Server set up, you can now bind other applications to it for ser
212213
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.
213214

214215
```azurecli
215-
az group delete \
216+
az group delete \
216217
--resource-group $RESOURCE_GROUP
217218
```
218219

articles/container-apps/java-admin.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The following commands help you create your resource group and Container Apps en
102102
--location $LOCATION
103103
```
104104

105-
## Use the Admin for Spring Java component
105+
## Use the component
106106

107107
Now that you have an existing environment, you can create your container app and bind it to a Java component instance of Admin for Spring.
108108

@@ -142,7 +142,7 @@ Now that you have an existing environment, you can create your container app and
142142

143143
You can also [remove a binding](admin-for-spring-usage.md#unbind) from your application.
144144

145-
## View the application in Admin for Spring dashboards
145+
## View the dashboard
146146

147147
> [!IMPORTANT]
148148
> 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.
@@ -179,9 +179,9 @@ Now that you have an existing environment, you can create your container app and
179179

180180
```azurecli
181181
az role assignment create \
182-
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
183-
--role "Java Component Dashboard Access" \
184-
--scope $ENVIRONMENT_ID
182+
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
183+
--role "Java Component Dashboard Access" \
184+
--scope $ENVIRONMENT_ID
185185
```
186186

187187
1. Get the URL of the Admin for Spring dashboard.

0 commit comments

Comments
 (0)