当我发出命令时:
az acr task list-runs --registry <regname> --output table
我得到了一些失败和成功任务的长列表。我想清除失败的,以便更容易阅读表格。我怎样才能做到这一点?我发现文章 Automatically purge images from an Azure container registry 展示了如何设置任务以清除旧容器映像,而不是任务。同时查看文档,我似乎无法删除基于标签标签 az acr task delete 的特定任务。这甚至可行吗?谢谢。
答案 0 :(得分:0)
您可以使用参数 --run-status
来过滤失败的任务:
az acr task list-runs --registry <regname> --run-status Succeeded --output table
而且只能按名称删除任务,不支持标签标签。