Skip to content

Commit 6729988

Browse files
committed
edits
1 parent 5f2f347 commit 6729988

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/container-registry/container-registry-tasks-logs.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ Each task run in [Azure Container Registry tasks](container-registry-tasks-overv
1111

1212
## View streamed logs
1313

14-
Tasks that you trigger manually stream log output directly to the console. For example, when you trigger a task manually by using the [az acr build](/cli/azure/acr#az-acr-build), [az acr run](/cli/azure/acr#az-acr-run), or [az acr task run](/cli/azure/acr/task#az-acr-task-run) command, log output is streamed to the console.
14+
When you trigger a task manually, log output is streamed directly to the console. For example, when you trigger a task manually by using the [az acr build](/cli/azure/acr#az-acr-build), [az acr run](/cli/azure/acr#az-acr-run), or [az acr task run](/cli/azure/acr/task#az-acr-task-run) command, log output is streamed to the console.
1515

16-
The following sample [az acr run](/cli/azure/acr#az-acr-run) command manually triggers running a container pulled from a registry:
16+
The following sample [az acr run](/cli/azure/acr#az-acr-run) command manually triggers a task that runs a container pulled from the same registry:
1717

1818
```azurecli
1919
az acr run --registry mycontainerregistry1220 \
2020
--cmd '$Registry/samples/hello-world:v1' /dev/null
2121
```
2222

23-
Streamed log for run *cf4*:
23+
Streamed log:
2424

2525
```console
2626
Queued a run with ID: cf4
@@ -51,9 +51,9 @@ Run ID: cf4 was successful after 5s
5151

5252
## View stored logs
5353

54-
Azure Container Registry stores run logs for all tasks. You can view stored run logs in the Azure portal, or use the [az acr task logs](/cli/azure/acr/task#az-acr-task-logs) command.
54+
Azure Container Registry stores run logs for all tasks. You can view stored run logs in the Azure portal. Or, use the [az acr task logs](/cli/azure/acr/task#az-acr-task-logs) command to view a selected log.
5555

56-
If a task is automatically triggered, for example by a source code update, accessing the stored logs is the *only* way to view the run logs. Automatic task triggers include source code commits or pull requests, base image updates, or timer triggers.
56+
If a task is automatically triggered, for example by a source code update, accessing the stored logs is the *only* way to view the run logs. Automatic task triggers include source code commits or pull requests, base image updates, and timer triggers.
5757

5858
To view run logs in the portal:
5959

@@ -63,13 +63,14 @@ To view run logs in the portal:
6363

6464
![View task run login portal](./media/container-registry-tasks-logs/portal-task-run-logs.png)
6565

66-
In the Azure CLI, run [az acr task logs](/cli/azure/acr/task#az-acr-task-logs) and specify a run ID, a task name, or a specific image built by the task. If a task name is specified, the command shows the log for the last created run. For example, specify a run ID to view the log for that run:
66+
To view a log using the Azure CLI, run [az acr task logs](/cli/azure/acr/task#az-acr-task-logs) and specify a run ID, a task name, or a specific image create by a build task. If a task name is specified, the command shows the log for the last created run.
67+
68+
The following example outputs the log for the run with ID *cf4*:
6769

6870
```azurecli
6971
az acr task logs --registry mycontainerregistry1220 \
7072
--run-id cf4
7173
```
72-
The output shows the specified run log.
7374

7475
## Log retention
7576

@@ -96,7 +97,7 @@ az acr task logs --registry mycontainerregistry1220 \
9697
--run-id cf4 > ~/tasklogs/cf4.log
9798
```
9899

99-
You can save local log files to Azure Storage. For example, use the [Azure CLI](../storage/blobs/storage-quickstart-blobs-cli.md), the [Azure portal](../storage/blobs/storage-quickstart-blobs-portal.md), or other methods to upload files to a storage account.
100+
You can also save local log files to Azure Storage. For example, use the [Azure CLI](../storage/blobs/storage-quickstart-blobs-cli.md), the [Azure portal](../storage/blobs/storage-quickstart-blobs-portal.md), or other methods to upload files to a storage account.
100101

101102

102103
## Next steps

0 commit comments

Comments
 (0)