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
Copy file name to clipboardExpand all lines: articles/container-apps/container-console.md
+36-10Lines changed: 36 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,44 +29,70 @@ Select **Console** in the **Monitoring** menu group from your container app page
29
29
30
30
Use the `az containerapp exec` command to connect to a container console. Select **Ctrl-D** to exit the console.
31
31
32
-
For example, connect to a container console in a container app with a single revision, replica, and container using the following command.
32
+
For example, connect to a container console in a container app with a single revision, replica, and 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 album-api \
39
-
--resource-group album-api-rg
38
+
--name <ContainerAppName> \
39
+
--resource-group <ResourceGroup>
40
40
```
41
41
42
42
# [PowerShell](#tab/powershell)
43
43
44
44
```azurecli
45
45
az containerapp exec `
46
-
--name album-api `
47
-
--resource-group album-api-rg
46
+
--name <ContainerAppName> `
47
+
--resource-group <ResourceGroup>
48
48
```
49
49
50
50
---
51
51
52
52
To connect to a container console in a container app with multiple revisions, replicas, and containers include the `--revision`, `--replica`, and `--container` arguments with the `az containerapp exec` command.
53
53
54
-
Use the `az containerapp revision list` command to list active revision, replica and container names in your app. For example:
54
+
You can get the revision names with the `az containerapp revision list` command. Replace the \<placeholders\> with your container app's values.
55
55
56
56
# [Bash](#tab/bash)
57
57
58
58
```azurecli
59
59
az containerapp revision list \
60
-
--name album-api \
61
-
--resource-group album-api-rg
60
+
--name <ContainerAppName> \
61
+
--resource-group <ResourceGroup> \
62
+
--query "[].name"
62
63
```
63
64
64
65
# [PowerShell](#tab/powershell)
65
66
66
67
```azurecli
67
68
az containerapp revision list `
68
-
--name album-api `
69
-
--resource-group album-api-rg
69
+
--name <ContainerAppName> `
70
+
--resource-group <ResourceGroup> `
71
+
--query "[].name"
72
+
```
73
+
74
+
---
75
+
76
+
Use the `az containerapp replica list` command to get the replica and container names. Replace the \<placeholders\> with your container app's values.
Copy file name to clipboardExpand all lines: articles/container-apps/log-streaming.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ While developing and troubleshooting your container app, it's important to see a
16
16
17
17
## Azure portal
18
18
19
-
To view a container app's log stream in the Azure portal with these steps.
19
+
View a container app's log stream in the Azure portal with these steps.
20
20
21
21
1. Navigate to your container app in the Azure portal.
22
22
1. Select **Log stream** under the *Monitoring* section on the sidebar menu.
@@ -28,14 +28,16 @@ After a container is selected, the log stream is displayed in the viewing pane.
28
28
29
29
## Azure CLI
30
30
31
-
You can view container's log stream from the Azure CLI with the `az containerapp logs show` command. You can use these arguments to:
31
+
You can view a container's log stream from the Azure CLI with the `az containerapp logs show` command. You can use these arguments to:
32
32
33
33
- View previous log entries with the `--tail` argument.
34
34
- View a live stream with the `--follow`argument.
35
35
36
36
Use `Ctrl/Cmd-C` to stop the live stream.
37
37
38
-
For example, you can list the last 50 container log entries in a container app with a single revision, replica, and container using the following command.
38
+
For example, you can list the last 50 container log entries in a container app with a single container using the following command.
39
+
40
+
This example live streams the a container's log entries.
0 commit comments