Skip to content

Commit 3b7fc89

Browse files
Merge pull request #280687 from Akhilesh-microsoft/ACA/Container_console
[ACA: Container_console]: Verified the article for links and freshness, reviewed the content, verified all the editorial parameters. Article seems good. Updated ms.date
2 parents 80fedfd + 3f15f7d commit 3b7fc89

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

articles/container-apps/container-console.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,45 @@ author: v-jaswel
66
ms.service: container-apps
77
ms.custom: devx-track-azurecli
88
ms.topic: how-to
9-
ms.date: 08/30/2022
9+
ms.date: 07/12/2024
1010
ms.author: v-wellsjason
1111
---
1212

1313

1414
# Connect to a container console in Azure Container Apps
1515

16-
Connecting to a container's console is useful when you want to troubleshoot your application inside a container. Azure Container Apps lets you connect to a container's console using the Azure portal or the Azure CLI.
16+
Connecting to a container's console is useful when you want to troubleshoot your application inside a container. Azure Container Apps allows you to connect to a container's console using the Azure portal or Azure CLI.
1717

1818
## Azure portal
1919

2020
To connect to a container's console in the Azure portal, follow these steps.
2121

22-
1. Select **Console** in the **Monitoring** menu group from your container app page in the Azure portal.
23-
1. Select the revision, replica and container you want to connect to.
24-
1. Choose to access your console via bash, sh, or a custom executable. If you choose a custom executable, it must be available in the container.
22+
1. In the Azure portal, select **Console** in the **Monitoring** menu group from your container app page.
23+
1. Select the revision, replica, and container you want to connect to.
24+
1. Choose to access your console via bash, sh, or a custom executable. If you choose a custom executable, it must be available in the container.
2525

2626
:::image type="content" source="media/observability/console-ss.png" alt-text="Screenshot of Azure Container Apps Console page.":::
2727

2828
## Azure CLI
2929

30-
Use the `az containerapp exec` command to connect to a container console. Select **Ctrl-D** to exit the console.
30+
To connect to a container console, Use the `az containerapp exec` command. To exit the console, select **Ctrl-D**.
3131

32-
For example, connect to a container console in a container app with a single container using the following command. Replace the \<placeholders\> with your container app's values.
32+
For example, connect to a container console in a container app with a single container using the following command. Replace the \<PLACEHOLDERS\> with your container app's values.
3333

3434
# [Bash](#tab/bash)
3535

3636
```azurecli
3737
az containerapp exec \
38-
--name <ContainerAppName> \
39-
--resource-group <ResourceGroup>
38+
--name <CONTAINER_APP_NAME> \
39+
--resource-group <RESOURCE_GROUP>
4040
```
4141

4242
# [PowerShell](#tab/powershell)
4343

4444
```azurecli
4545
az containerapp exec `
46-
--name <ContainerAppName> `
47-
--resource-group <ResourceGroup>
46+
--name <CONTAINER_APP_NAME> `
47+
--resource-group <RESOURCE_GROUP>
4848
```
4949

5050
---
@@ -57,74 +57,74 @@ To connect to a container console in a container app with multiple revisions, re
5757
| `--replica` | The replica name of the container to connect to. |
5858
| `--container` | The container name of the container to connect to. |
5959

60-
You can get the revision names with the `az containerapp revision list` command. Replace the \<placeholders\> with your container app's values.
60+
You can get the revision names with the `az containerapp revision list` command. Replace the \<PLACEHOLDERS\> with your container app's values.
6161

6262
# [Bash](#tab/bash)
6363

6464
```azurecli
6565
az containerapp revision list \
66-
--name <ContainerAppName> \
67-
--resource-group <ResourceGroup> \
66+
--name <CONTAINER_APP_NAME> \
67+
--resource-group <RESOURCE_GROUP> \
6868
--query "[].name"
6969
```
7070

7171
# [PowerShell](#tab/powershell)
7272

7373
```azurecli
7474
az containerapp revision list `
75-
--name <ContainerAppName> `
76-
--resource-group <ResourceGroup> `
75+
--name <CONTAINER_APP_NAME> `
76+
--resource-group <RESOURCE_GROUP> `
7777
--query "[].name"
7878
```
7979

8080
---
8181

82-
Use the `az containerapp replica list` command to get the replica and container names. Replace the \<placeholders\> with your container app's values.
82+
Use the `az containerapp replica list` command to get the replica and container names. Replace the \<PLACEHOLDERS\> with your container app's values.
8383

8484
# [Bash](#tab/bash)
8585

8686
```azurecli
8787
az containerapp replica list \
88-
--name <ContainerAppName> \
89-
--resource-group <ResourceGroup> \
90-
--revision <RevisionName> \
88+
--name <CONTAINER_APP_NAME> \
89+
--resource-group <RESOURCE_GROUP> \
90+
--revision <REVISION_NAME> \
9191
--query "[].{Containers:properties.containers[].name, Name:name}"
9292
```
9393

9494
# [PowerShell](#tab/powershell)
9595

9696
```azurecli
9797
az containerapp replica list `
98-
--name <ContainerAppName> `
99-
--resource-group <ResourceGroup> `
100-
--revision <RevisionName> `
98+
--name <CONTAINER_APP_NAME> `
99+
--resource-group <RESOURCE_GROUP> `
100+
--revision <REVISIONNAME> `
101101
--query "[].{Containers:properties.containers[].name, Name:name}"
102102
```
103103

104104
---
105105

106-
Connect to the container console with the `az containerapp exec` command. Replace the \<placeholders\> with your container app's values.
106+
Connect to the container console with the `az containerapp exec` command. Replace the \<PLACEHOLDERS\> with your container app's values.
107107

108108
# [Bash](#tab/bash)
109109

110110
```azurecli
111111
az containerapp exec \
112-
--name <ContainerAppName> \
113-
--resource-group <ResourceGroup> \
114-
--revision <RevisionName> \
115-
--replica <ReplicaName> \
116-
--container <ContainerName>
112+
--name <CONTAINER_APP_NAME> \
113+
--resource-group <RESOURCE_GROUP> \
114+
--revision <REVISION_NAME> \
115+
--replica <REPLICA_NAME> \
116+
--container <CONTAINER_NAME>
117117
```
118118

119119
# [PowerShell](#tab/powershell)
120120

121121
```azurecli
122122
az containerapp exec `
123-
--name <ContainerAppName> `
124-
--resource-group <ResourceGroup> `
125-
--revision <RevisionName> `
126-
--replica <ReplicaName> `
127-
--container <ContainerName>
123+
--name <CONTAINER_APP_NAME> `
124+
--resource-group <RESOURCE_GROUP> `
125+
--revision <REVISION_NAME> `
126+
--replica <REPLICA_NAME> `
127+
--container <CONTAINER_NAME>
128128
```
129129

130130
---

0 commit comments

Comments
 (0)