Skip to content

Commit b59f647

Browse files
committed
removed retention period
1 parent 549cc49 commit b59f647

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Run ID: cf4 was successful after 5s
5353

5454
## View stored logs
5555

56-
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.
56+
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. By default, logs are retained for 30 days.
5757

5858
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.
5959

@@ -74,18 +74,6 @@ az acr task logs --registry mycontainerregistry1220 \
7474
--run-id cf4
7575
```
7676

77-
## Log retention
78-
79-
By default, data and logs for task runs in a registry are retained for 30 days. After that time, records are automatically purged.
80-
81-
If you want Azure Container Registry 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 *cf4*:
82-
83-
```azurecli
84-
az acr task update-run \
85-
--registry mycontainerregistry1220 \
86-
--run-id cf4 --no-archive false
87-
```
88-
8977
## Alternative log storage
9078

9179
You might want to store task run logs on a local file system or use an alternative archiving solution such as Azure Storage.

0 commit comments

Comments
 (0)