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.md
+42-29Lines changed: 42 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,19 @@
2
2
title: "Tutorial: Connect to a managed Admin for Spring in Azure Container Apps"
3
3
description: Learn to use a managed Admin for Spring in Azure Container Apps.
4
4
services: container-apps
5
-
author:
5
+
author: craigshoemaker
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
10
-
ms.author:
9
+
ms.date: 07/03/2024
10
+
ms.author: cshoe
11
11
---
12
12
13
13
# Tutorial: Connect to a managed Admin for Spring in Azure Container Apps (preview)
14
14
15
-
The Admin for Spring managed component offers an administrative interface for Spring Boot web applications that expose actuator endpoints. As a managed component in Azure Container Apps, you can easily bind your container app to Admin for Spring for seamless integration and management. This tutorial will guide you through the process of creating an Admin for Spring Java component and binding your container app to it. By following this guide, you'll be able to monitor and manage your Spring applications with ease.
15
+
The Admin for Spring managed component offers an administrative interface for Spring Boot web applications that expose actuator endpoints. As a managed component in Azure Container Apps, you can easily bind your container app to Admin for Spring for seamless integration and management.
16
+
17
+
This tutorial guides shows you how to create an Admin for Spring Java component and bind it to your container app so you can monitor and manage your Spring applications with ease.
16
18
17
19
:::image type="content" source="media/java-components/sba-overview.png" alt-text="Overview of the Admin for Spring insights dashboard." lightbox="media/java-components/sba-overview.png":::
18
20
@@ -22,8 +24,8 @@ In this tutorial, you learn to:
22
24
> * Create an Admin for Spring Java component
23
25
> * Bind your container app to Admin for Spring Java component
24
26
25
-
> [!IMPORTANT]
26
-
> If you want to integrate Admin for Spring with Eureka Server for Spring, please go to this tutorial instead [Tutorial: Integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps](java-admin-eureka-integration.md).
27
+
> [!NOTE]
28
+
> If you want to integrate Admin for Spring with Eureka Server for Spring, see [Integrate Admin for Spring with Eureka Server for Spring in Azure Container Apps](java-admin-eureka-integration.md) instead.
27
29
28
30
> [!IMPORTANT]
29
31
> This tutorial uses services that can affect your Azure bill. If you decide to follow along step-by-step, make sure you delete the resources featured in this article to avoid unexpected billing.
@@ -34,8 +36,8 @@ To complete this project, you need the following items:
34
36
35
37
| Requirement | Instructions |
36
38
|--|--|
37
-
| Azure account | An active subscription is required. If you don't have one, you [can create one for free](https://azure.microsoft.com/free/). |
38
-
| Azure CLI | Install the [Azure CLI](/cli/azure/install-azure-cli).|
39
+
|[Azure account](https://azure.microsoft.com/free/)| An active subscription is required. If you don't have one, you [can create one for free](https://azure.microsoft.com/free/). |
40
+
|[Azure CLI](/cli/azure/install-azure-cli)| Install the [Azure CLI](/cli/azure/install-azure-cli).|
39
41
40
42
## Considerations
41
43
@@ -53,13 +55,13 @@ When running Admin for Spring in Azure Container Apps, be aware of the following
53
55
54
56
Before you begin to work with the Admin for Spring, you first need to create the required resources.
55
57
56
-
Execute the following commands to create your resource group, container apps environment.
58
+
The following commands help you create your resource group and Container Apps environment.
57
59
58
60
1. Create variables to support your application configuration. These values are provided for you for the purposes of this lesson.
59
61
60
62
```bash
61
63
export LOCATION=eastus
62
-
export RESOURCE_GROUP=my-services-resource-group
64
+
export RESOURCE_GROUP=my-demo-resource-group
63
65
export ENVIRONMENT=my-environment
64
66
export JAVA_COMPONENT_NAME=admin
65
67
export APP_NAME=sample-admin-client
@@ -83,9 +85,14 @@ Execute the following commands to create your resource group, container apps env
83
85
1. Create a resource group.
84
86
85
87
```azurecli
86
-
az group create --name $RESOURCE_GROUP --location $LOCATION
88
+
az group create \
89
+
--name $RESOURCE_GROUP \
90
+
--location $LOCATION \
91
+
--query "properties.provisioningState"
87
92
```
88
93
94
+
Using the `--query` parameter filters the response down to a simple success or failure message.
95
+
89
96
1. Create your container apps environment.
90
97
91
98
```azurecli
@@ -150,41 +157,44 @@ Now that you have an existing environment, you can create your container app and
Make sure to replace the placeholder in between the `<>` brackets with your user or service principal ID.
186
+
177
187
1. Get the URL of the Admin for Spring dashboard.
178
188
179
189
```azurecli
180
-
az containerapp env java-component admin-for-spring show \
181
-
--environment $ENVIRONMENT \
182
-
--resource-group $RESOURCE_GROUP \
183
-
--name $JAVA_COMPONENT_NAME \
184
-
--query properties.ingress.fqdn -o tsv
190
+
az containerapp env java-component admin-for-spring show \
191
+
--environment $ENVIRONMENT \
192
+
--resource-group $RESOURCE_GROUP \
193
+
--name $JAVA_COMPONENT_NAME \
194
+
--query properties.ingress.fqdn -o tsv
185
195
```
186
196
187
-
You should be able to access the Admin forSpring dashboard using the URL provided. And the container app should be visiblein the dashboard like the screenshot below:
197
+
This command returns the URL you can use to access the Admin forSpring dashboard. Through the dashboard, you container app is also to you as shownin the following screenshot.
188
198
189
199
:::image type="content" source="media/java-components/sba-alone.png" alt-text="Screenshot of the Admin for Spring dashboard." lightbox="media/java-components/sba-alone.png":::
190
200
@@ -201,4 +211,7 @@ The resources created in this tutorial have an effect on your Azure bill. If you
201
211
202
212
> [!div class="nextstepaction"]
203
213
> [Configure Admin for Spring settings](java-admin-for-spring-usage.md)
204
-
> [Tutorial: Integrate the managed Admin for Spring with Eureka Server for Spring](java-admin-eureka-integration.md)
214
+
215
+
## Related content
216
+
217
+
- [Integrate the managed Admin for Spring with Eureka Server for Spring](java-admin-eureka-integration.md)
0 commit comments