通过Azure版本删除Azure管道Blob存储的内容

问题描述 投票:0回答:1

我只是试图建立一个CICD管道,我想将新的static react build软件包复制到azure blob存储中,因此需要删除旧内容,但是我发现唯一可以采取的措施就是复制,是否可以要这样做吗?screen shot

azure azure-pipelines azure-storage-blobs azure-blob-storage
1个回答
0
投票

无法使用Azure File Copy删除/清除blob内容。

您可以在运行Azure CLI任务之前使用az任务来调用Azure File Copy cmdlet清理容器。

az storage blob delete-batch --account-name <storage_account_name> --source <container_name>

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.