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-admin-eureka-integration.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
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)"
3
3
description: Learn to integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps.
4
4
services: container-apps
5
5
author:
6
6
ms.service: container-apps
7
7
ms.custom: devx-track-extended-java
8
8
ms.topic: conceptual
9
-
ms.date: 05/24/2024
9
+
ms.date: 07/03/2024
10
10
ms.author:
11
11
---
12
12
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)
14
14
15
15
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.
16
16
@@ -90,9 +90,12 @@ Before you begin, create the necessary resources by executing the following comm
90
90
az containerapp env create \
91
91
--name $ENVIRONMENT \
92
92
--resource-group $RESOURCE_GROUP \
93
-
--location $LOCATION
93
+
--location $LOCATION \
94
+
--query "properties.provisioningState"
94
95
```
95
96
97
+
Using the `--query` parameter filters the response down to a simple success or failure message.
98
+
96
99
## Optional: Create the Eureka Server for Spring
97
100
98
101
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
104
107
--name $EUREKA_COMPONENT_NAME
105
108
```
106
109
107
-
## Create the Admin for Spring and bind it to the Eureka Server for Spring
110
+
## Bind the components together
108
111
109
112
1. Create the Admin for Spring Java component.
110
113
@@ -116,12 +119,10 @@ Before you begin, create the necessary resources by executing the following comm
116
119
--bind $EUREKA_COMPONENT_NAME
117
120
```
118
121
119
-
120
-
## Bind Other Applications to the Eureka Server
122
+
## Bind other apps to the Eureka Server
121
123
122
124
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:
123
125
124
-
125
126
1. Create the container app and bind it to the Eureka Server.
126
127
127
128
```azurecli
@@ -139,7 +140,7 @@ With the Eureka Server set up, you can now bind other applications to it for ser
139
140
140
141
> [!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.
141
142
142
-
## View the application in both Admin for Spring and Eureka Server for Spring dashboards
143
+
## View the dashboards
143
144
144
145
> [!IMPORTANT]
145
146
> 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
184
185
1. Get the URL of the Admin for Spring dashboard.
185
186
186
187
```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
192
193
```
193
194
194
195
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
212
213
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.
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
@@ -102,7 +102,7 @@ The following commands help you create your resource group and Container Apps en
102
102
--location $LOCATION
103
103
```
104
104
105
-
## Use the Admin for Spring Java component
105
+
## Use the component
106
106
107
107
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.
108
108
@@ -142,7 +142,7 @@ Now that you have an existing environment, you can create your container app and
142
142
143
143
You can also [remove a binding](admin-for-spring-usage.md#unbind) from your application.
144
144
145
-
## View the application in Admin for Spring dashboards
145
+
## View the dashboard
146
146
147
147
> [!IMPORTANT]
148
148
> 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
0 commit comments