Skip to content

Commit 7bee983

Browse files
Updated date metadata, added in prerequisite for getting free Azure account, and fixed code tab headers and code language slugs.
1 parent 7ddc2f6 commit 7bee983

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

articles/container-apps/java-application-performance-management-config.md

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services: container-apps
77
ms.service: azure-container-apps
88
ms.custom: devx-track-azurecli
99
ms.topic: tutorial
10-
ms.date: 11/4/2024
10+
ms.date: 11/25/2024
1111
ms.author: kuzhong
1212
author: KarlErickson
1313
---
@@ -25,6 +25,7 @@ In this tutorial, you:
2525
2626
## Prerequisites
2727

28+
- An Azure subscription. [Create one for free.](https://azure.microsoft.com/free/).
2829
- An instance of [Application Insights](/azure/azure-monitor/app/app-insights-overview).
2930
- An instance of Azure Container Registry or another container image registry.
3031
- [Docker](https://www.docker.com/), to build an image.
@@ -62,14 +63,14 @@ Use the following steps to define environment variables and ensure your Containe
6263

6364
1. Sign in to the Azure CLI by using the following commands:
6465

65-
# [Azure CLI](#tab/azurecli)
66+
# [Bash](#tab/bash)
6667

6768
```azurecli
6869
az login
6970
az account set --subscription $SUBSCRIPTION_ID
7071
```
7172

72-
# [Azure PowerShell](#tab/azurepowershell)
73+
# [PowerShell](#tab/powershell)
7374

7475
```azurepowershell
7576
az login
@@ -78,33 +79,33 @@ Use the following steps to define environment variables and ensure your Containe
7879

7980
1. Use the following commands to ensure that you have the latest version of the Azure CLI extensions for Container Apps and Application Insights:
8081

81-
# [Azure CLI](#tab/azurecli)
82+
# [Bash](#tab/bash)
8283

83-
```bash
84+
```azurecli
8485
az extension add --name containerapp --upgrade
8586
az extension add --name application-insights --upgrade
8687
```
8788

88-
# [Azure PowerShell](#tab/azurepowershell)
89+
# [PowerShell](#tab/powershell)
8990

90-
```powershell
91+
```azurepowershell
9192
az extension add --name containerapp --upgrade
9293
az extension add --name application-insights --upgrade
9394
```
9495

9596
1. Retrieve the connection string for your Application Insights instance by using the following commands:
9697

97-
# [Azure CLI](#tab/azurecli)
98+
# [Bash](#tab/bash)
9899

99-
```bash
100+
```azurecli
100101
CONNECTION_STRING=$(az monitor app-insights component show \
101102
--ids $APP_INSIGHTS_RESOURCE_ID \
102103
--query connectionString)
103104
```
104105

105-
# [Azure PowerShell](#tab/azurepowershell)
106+
# [PowerShell](#tab/powershell)
106107

107-
```powershell
108+
```azurepowershell
108109
$CONNECTION_STRING=(az monitor app-insights component show `
109110
--ids $APP_INSIGHTS_RESOURCE_ID `
110111
--query connectionString)
@@ -160,16 +161,16 @@ To build a setup image for the Application Insights Java agent, use the followin
160161

161162
1. Push the image to Azure Container Registry or another container image registry by using the following commands:
162163

163-
# [Azure CLI](#tab/azurecli)
164+
# [Bash](#tab/bash)
164165

165-
```bash
166+
```azurecli
166167
az acr login --name $CONTAINER_REGISTRY_NAME
167168
docker push "$CONTAINER_REGISTRY_NAME.azurecr.io/samples/java-agent-setup:1.0.0"
168169
```
169170

170-
# [Azure PowerShell](#tab/azurepowershell)
171+
# [PowerShell](#tab/powershell)
171172

172-
```powershell
173+
```azurepowershell
173174
az acr login --name $CONTAINER_REGISTRY_NAME
174175
docker push "$CONTAINER_REGISTRY_NAME.azurecr.io/samples/java-agent-setup:1.0.0"
175176
```
@@ -183,7 +184,7 @@ To create a Container Apps environment and a container app as the target Java ap
183184

184185
1. Create a Container Apps environment by using the following command:
185186

186-
# [Azure CLI](#tab/azurecli)
187+
# [Bash](#tab/bash)
187188

188189
```azurecli
189190
az containerapp env create \
@@ -193,7 +194,7 @@ To create a Container Apps environment and a container app as the target Java ap
193194
--query "properties.provisioningState"
194195
```
195196

196-
# [Azure PowerShell](#tab/azurepowershell)
197+
# [PowerShell](#tab/powershell)
197198

198199
```azurepowershell
199200
az containerapp env create `
@@ -209,19 +210,19 @@ To create a Container Apps environment and a container app as the target Java ap
209210

210211
1. Create a container app for further configuration by using the following command:
211212

212-
# [Azure CLI](#tab/azurecli)
213+
# [Bash](#tab/bash)
213214

214-
```bash
215+
```azurecli
215216
az containerapp create \
216217
--name $CONTAINER_APP_NAME \
217218
--environment $ENVIRONMENT_NAME \
218219
--resource-group $RESOURCE_GROUP \
219220
--query "properties.provisioningState"
220221
```
221222

222-
# [Azure PowerShell](#tab/azurepowershell)
223+
# [PowerShell](#tab/powershell)
223224

224-
```powershell
225+
```azurepowershell
225226
az containerapp create `
226227
--name $CONTAINER_APP_NAME `
227228
--environment $ENVIRONMENT_NAME `
@@ -239,19 +240,19 @@ Use the following steps to configure your init container with secrets, environme
239240

240241
1. Write the current configuration of the running Container App to an **app.yaml** file in the current directory, by using the following command:
241242

242-
# [Azure CLI](#tab/azurecli)
243+
# [Bash](#tab/bash)
243244

244-
```bash
245+
```azurecli
245246
az containerapp show \
246247
--resource-group $RESOURCE_GROUP \
247248
--name $CONTAINER_APP_NAME \
248249
--output yaml \
249250
> app.yaml
250251
```
251252

252-
# [Azure PowerShell](#tab/azurepowershell)
253+
# [PowerShell](#tab/powershell)
253254

254-
```powershell
255+
```azurepowershell
255256
az containerapp show `
256257
--resource-group $RESOURCE_GROUP `
257258
--name $CONTAINER_APP_NAME `
@@ -321,7 +322,7 @@ Use the following steps to configure your init container with secrets, environme
321322

322323
1. Update the container app with the modified **app.yaml** file by using the following command:
323324

324-
# [Azure CLI](#tab/azurecli)
325+
# [Bash](#tab/bash)
325326

326327
```azurecli
327328
az containerapp update \
@@ -331,7 +332,7 @@ Use the following steps to configure your init container with secrets, environme
331332
--query "properties.provisioningState"
332333
```
333334

334-
# [Azure PowerShell](#tab/azurepowershell)
335+
# [PowerShell](#tab/powershell)
335336

336337
```azurepowershell
337338
az containerapp update `
@@ -349,14 +350,14 @@ Use the following steps to configure your init container with secrets, environme
349350

350351
The resources you created in this tutorial contribute to your Azure bill. If you don't need them long term, use the following command to remove the resource group and its resources:
351352
352-
# [Azure CLI](#tab/azurecli)
353+
# [Bash](#tab/bash)
353354
354-
```bash
355+
```azurecli
355356
az group delete --resource-group $RESOURCE_GROUP
356357
```
357358
358-
# [Azure PowerShell](#tab/azurepowershell)
359-
```powershell
359+
# [PowerShell](#tab/powershell)
360+
```azurepowershell
360361
az group delete --resource-group $RESOURCE_GROUP
361362
```
362363

0 commit comments

Comments
 (0)