Skip to content

Commit d1f10e9

Browse files
copy edit java admin article
1 parent 41f686f commit d1f10e9

File tree

3 files changed

+42
-29
lines changed

3 files changed

+42
-29
lines changed

articles/container-apps/java-admin.md

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22
title: "Tutorial: Connect to a managed Admin for Spring in Azure Container Apps"
33
description: Learn to use a managed Admin for Spring in Azure Container Apps.
44
services: container-apps
5-
author:
5+
author: craigshoemaker
66
ms.service: container-apps
77
ms.custom: devx-track-extended-java
88
ms.topic: conceptual
9-
ms.date: 05/24/2024
10-
ms.author:
9+
ms.date: 07/03/2024
10+
ms.author: cshoe
1111
---
1212

1313
# Tutorial: Connect to a managed Admin for Spring in Azure Container Apps (preview)
1414

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.
1618

1719
:::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":::
1820

@@ -22,8 +24,8 @@ In this tutorial, you learn to:
2224
> * Create an Admin for Spring Java component
2325
> * Bind your container app to Admin for Spring Java component
2426
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.
2729
2830
> [!IMPORTANT]
2931
> 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:
3436

3537
| Requirement | Instructions |
3638
|--|--|
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).|
3941

4042
## Considerations
4143

@@ -53,13 +55,13 @@ When running Admin for Spring in Azure Container Apps, be aware of the following
5355

5456
Before you begin to work with the Admin for Spring, you first need to create the required resources.
5557

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.
5759

5860
1. Create variables to support your application configuration. These values are provided for you for the purposes of this lesson.
5961

6062
```bash
6163
export LOCATION=eastus
62-
export RESOURCE_GROUP=my-services-resource-group
64+
export RESOURCE_GROUP=my-demo-resource-group
6365
export ENVIRONMENT=my-environment
6466
export JAVA_COMPONENT_NAME=admin
6567
export APP_NAME=sample-admin-client
@@ -83,9 +85,14 @@ Execute the following commands to create your resource group, container apps env
8385
1. Create a resource group.
8486

8587
```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"
8792
```
8893

94+
Using the `--query` parameter filters the response down to a simple success or failure message.
95+
8996
1. Create your container apps environment.
9097

9198
```azurecli
@@ -150,41 +157,44 @@ Now that you have an existing environment, you can create your container app and
150157
"Actions": [
151158
"Microsoft.App/managedEnvironments/write"
152159
],
153-
"AssignableScopes": ["/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
160+
"AssignableScopes": ["/subscriptions/<SUBSCRIPTION_ID>"]
154161
}'
155162
```
156-
Please replace the `AssignableScopes` value with your subscription id.
157163

158-
1. Assign the Custom Role to your accound on managed environment resource.
164+
Make sure to replace placeholder in between the `<>` brackets in the `AssignableScopes` value with your subscription ID.
165+
166+
1. Assign the Custom Role to your account on managed environment resource.
159167

160168
Get the resource id of the managed environment:
161169

162170
```azurecli
163-
export ENVIRONMENT_ID=$(az containerapp env show \
164-
--name $ENVIRONMENT --resource-group $RESOURCE_GROUP \
165-
--query id -o tsv)
171+
export ENVIRONMENT_ID=$(az containerapp env show \
172+
--name $ENVIRONMENT --resource-group $RESOURCE_GROUP \
173+
--query id -o tsv)
166174
```
167175

168176
1. Assign the role to the your account.
169-
177+
170178
```azurecli
171-
az role assignment create \
172-
--assignee <user-or-service-principal-id> \
173-
--role "Java Component Dashboard Access" \
174-
--scope $ENVIRONMENT_ID
179+
az role assignment create \
180+
--assignee <USER_OR_SERVICE_PRINCIPAL_ID> \
181+
--role "Java Component Dashboard Access" \
182+
--scope $ENVIRONMENT_ID
175183
```
176184

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

179189
```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
185195
```
186196

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

189199
:::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":::
190200

@@ -201,4 +211,7 @@ The resources created in this tutorial have an effect on your Azure bill. If you
201211
202212
> [!div class="nextstepaction"]
203213
> [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)
-50.1 KB
Loading
-223 KB
Loading

0 commit comments

Comments
 (0)