Skip to content

Commit 482bdd4

Browse files
Merge pull request #291456 from Akhilesh-microsoft/ACA/azure_arc_create_container_app
[GH286897- ACA: azure-arc-create-container-app]: Analyzed and fixed the "inconsistent naming conventions" in the article; reviewed and fixed the issues w.r.t freshness. Updated ms.date
2 parents 0aa7766 + f670978 commit 482bdd4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/container-apps/azure-arc-create-container-app.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.custom: devx-track-azurecli
88
ms.topic: conceptual
9-
ms.date: 3/20/2023
9+
ms.date: 12/05/2024
1010
ms.author: cshoe
1111
---
1212

@@ -43,28 +43,28 @@ az extension add --name containerapp --upgrade --yes
4343
Create a resource group for the services created in this tutorial.
4444

4545
```azurecli-interactive
46-
myResourceGroup="my-container-apps-resource-group"
47-
az group create --name $myResourceGroup --location eastus
46+
GROUP_NAME="my-container-apps-resource-group"
47+
az group create --name $GROUP_NAME --location eastus
4848
```
4949

5050
## Get custom location information
5151

5252
Get the following location group, name, and ID from your cluster administrator. See [Create a custom location](azure-arc-enable-cluster.md) for details.
5353

5454
```azurecli-interactive
55-
customLocationGroup="<RESOURCE_GROUP_CONTAINING_CUSTOM_LOCATION>"
55+
CUSTOM_LOCATION_GROUP="<RESOURCE_GROUP_CONTAINING_CUSTOM_LOCATION>"
5656
```
5757

5858
```azurecli-interactive
59-
customLocationName="<NAME_OF_CUSTOM_LOCATION>"
59+
CUSTOM_LOCATION_NAME="<NAME_OF_CUSTOM_LOCATION>"
6060
```
6161

6262
Get the custom location ID.
6363

6464
```azurecli-interactive
65-
customLocationId=$(az customlocation show \
66-
--resource-group $customLocationGroup \
67-
--name $customLocationName \
65+
CUSTOM_LOCATION_ID=$(az customlocation show \
66+
--resource-group $CUSTOM_LOCATION_GROUP \
67+
--name $CUSTOM_LOCATION_NAME \
6868
--query id \
6969
--output tsv)
7070
```
@@ -73,11 +73,11 @@ customLocationId=$(az customlocation show \
7373

7474
Now that you have the custom location ID, you can query for the connected environment.
7575

76-
A connected environment is largely the same as a standard Container Apps environment, but network restrictions are controlled by the underlying Arc-enabled Kubernetes cluster.
76+
A connected environment is largely the same as a standard Container Apps environment, but the underlying Arc-enabled Kubernetes cluster controls the network restrictions.
7777

7878
```azure-interactive
79-
myContainerApp="my-container-app"
80-
myConnectedEnvironment=$(az containerapp connected-env list --custom-location $customLocationId -o tsv --query '[].id')
79+
CONTAINER_APP_NAME="my-container-app"
80+
CONNECTED_ENVIRONMENT_ID=$(az containerapp connected-env list --custom-location $CUSTOM_LOCATION_ID -o tsv --query '[].id')
8181
```
8282

8383
## Create an app
@@ -86,15 +86,15 @@ The following example creates a Node.js app.
8686

8787
```azurecli-interactive
8888
az containerapp create \
89-
--resource-group $myResourceGroup \
90-
--name $myContainerApp \
91-
--environment $myConnectedEnvironment \
89+
--resource-group $GROUP_NAME \
90+
--name $CONTAINER_APP_NAME \
91+
--environment $CONNECTED_ENVIRONMENT_ID \
9292
--environment-type connected \
9393
--image mcr.microsoft.com/k8se/quickstart:latest \
9494
--target-port 80 \
9595
--ingress external
9696
97-
az containerapp browse --resource-group $myResourceGroup --name $myContainerApp
97+
az containerapp browse --resource-group $GROUP_NAME --name $CONTAINER_APP_NAME
9898
```
9999

100100
## Get diagnostic logs using Log Analytics
@@ -106,7 +106,7 @@ Navigate to the [Log Analytics workspace that's configured with your Container A
106106

107107
Run the following sample query to show logs over the past 72 hours.
108108

109-
If there's an error when running a query, try again in 10-15 minutes. There may be a delay for Log Analytics to start receiving logs from your application.
109+
If there's an error when running a query, try again in 10-15 minutes. There might be a delay for Log Analytics to start receiving logs from your application.
110110

111111
```kusto
112112
let StartTime = ago(72h);

0 commit comments

Comments
 (0)