Skip to content

Commit 7954b65

Browse files
committed
added archiving command
1 parent ad44e0b commit 7954b65

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,13 @@ Learn about multi-step tasks in [Run multi-step build, test, and patch tasks in
9393

9494
## View task logs
9595

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) 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. To view the logs for a task run, you can use the [az acr task logs](/cli/azure/acr/task#az-acr-task-logs) command.
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.
9797

98-
By default, data and logs for task runs in a registry are retained for 30 days and then automatically purged. If you want to archive the data for a task run, you can enable archiving using the [az acr task update-run](/cli/azure/acr/task#az-acr-task-update-run) command.
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+
```
99103

100104
## Next steps
101105

0 commit comments

Comments
 (0)