Skip to content

Commit f7c6c26

Browse files
authored
Merge pull request #77284 from dlepow/fix
[ACR] Task data/log retention
2 parents 14fc391 + 7954b65 commit f7c6c26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: dlepow
66

77
ms.service: container-registry
88
ms.topic: article
9-
ms.date: 03/28/2019
9+
ms.date: 05/20/2019
1010
ms.author: danlep
1111
---
1212

@@ -91,6 +91,16 @@ Multi-step tasks enable you to split the building, running, and testing of an im
9191

9292
Learn about multi-step tasks in [Run multi-step build, test, and patch tasks in ACR Tasks](container-registry-tasks-multi-step.md).
9393

94+
## View task logs
95+
96+
Each task run generates log output that you can inspect to determine whether the task steps ran successfully. If you use 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 to trigger the task, log output for the task run is streamed to the console and also stored for later retrieval. View the logs for a task run in the Azure portal, or use the [az acr task logs](/cli/azure/acr/task#az-acr-task-logs) command.
97+
98+
Starting in July 2019, data and logs for task runs in a registry will be retained by default for 30 days and then automatically purged. If you want to archive the data for a task run, enable archiving using the [az acr task update-run](/cli/azure/acr/task#az-acr-task-update-run) command. The following example enables archiving for the task run *cf11* in registry *myregistry*.
99+
100+
```azurecli
101+
az acr task update-run --registry myregistry --run-id cf11 --no-archive false
102+
```
103+
94104
## Next steps
95105

96106
When you're ready to automate OS and framework patching by building your container images in the cloud, check out the three-part [ACR Tasks tutorial series](container-registry-tutorial-quick-task.md).

0 commit comments

Comments
 (0)