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
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
Copy file name to clipboardExpand all lines: articles/container-apps/container-console.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,45 +6,45 @@ author: v-jaswel
6
6
ms.service: container-apps
7
7
ms.custom: devx-track-azurecli
8
8
ms.topic: how-to
9
-
ms.date: 08/30/2022
9
+
ms.date: 07/12/2024
10
10
ms.author: v-wellsjason
11
11
---
12
12
13
13
14
14
# Connect to a container console in Azure Container Apps
15
15
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.
17
17
18
18
## Azure portal
19
19
20
20
To connect to a container's console in the Azure portal, follow these steps.
21
21
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.
25
25
26
26
:::image type="content" source="media/observability/console-ss.png" alt-text="Screenshot of Azure Container Apps Console page.":::
27
27
28
28
## Azure CLI
29
29
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**.
31
31
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.
33
33
34
34
# [Bash](#tab/bash)
35
35
36
36
```azurecli
37
37
az containerapp exec \
38
-
--name <ContainerAppName> \
39
-
--resource-group <ResourceGroup>
38
+
--name <CONTAINER_APP_NAME> \
39
+
--resource-group <RESOURCE_GROUP>
40
40
```
41
41
42
42
# [PowerShell](#tab/powershell)
43
43
44
44
```azurecli
45
45
az containerapp exec `
46
-
--name <ContainerAppName> `
47
-
--resource-group <ResourceGroup>
46
+
--name <CONTAINER_APP_NAME> `
47
+
--resource-group <RESOURCE_GROUP>
48
48
```
49
49
50
50
---
@@ -57,74 +57,74 @@ To connect to a container console in a container app with multiple revisions, re
57
57
|`--replica`| The replica name of the container to connect to. |
58
58
|`--container`| The container name of the container to connect to. |
59
59
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.
61
61
62
62
# [Bash](#tab/bash)
63
63
64
64
```azurecli
65
65
az containerapp revision list \
66
-
--name <ContainerAppName> \
67
-
--resource-group <ResourceGroup> \
66
+
--name <CONTAINER_APP_NAME> \
67
+
--resource-group <RESOURCE_GROUP> \
68
68
--query "[].name"
69
69
```
70
70
71
71
# [PowerShell](#tab/powershell)
72
72
73
73
```azurecli
74
74
az containerapp revision list `
75
-
--name <ContainerAppName> `
76
-
--resource-group <ResourceGroup> `
75
+
--name <CONTAINER_APP_NAME> `
76
+
--resource-group <RESOURCE_GROUP> `
77
77
--query "[].name"
78
78
```
79
79
80
80
---
81
81
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.
0 commit comments