部署前Azure clean$web

部署前Azure clean$web,azure,azure-devops,azure-pipelines,azure-pipelines-release-pipeline,Azure,Azure Devops,Azure Pipelines,Azure Pipelines Release Pipeline,我正在尝试将我的静态web应用程序的发布管道设置到Azure Blob存储上 我已经在管道中创建了Azure CLI步骤,该步骤将清理Azure Blob存储上的$web容器,以便在下一步中每次复制文件时,我都将它们复制到一个新的干净容器中(不会有以前版本的遗留内容) 下面是Azure CLI任务的代码: az storage blob delete-batch --account-name <storage account> --source "\$web" -

我正在尝试将我的静态web应用程序的发布管道设置到Azure Blob存储上

我已经在管道中创建了Azure CLI步骤,该步骤将清理Azure Blob存储上的$web容器,以便在下一步中每次复制文件时,我都将它们复制到一个新的干净容器中(不会有以前版本的遗留内容)

下面是Azure CLI任务的代码:

az storage blob delete-batch --account-name <storage account> --source "\$web" --account-key <KEY>

什么原因可能导致此错误?

您的命令没有问题,请尝试使用其他容器进行检查

检查链接

当我执行您在bash终端中使用的命令时,它工作正常。我想知道这是否与
$
符号有关?可能是它没有被正确地逃脱。你能尝试使用其他虚拟容器吗(只是为了验证这个假设)?嗨,Alex,当你在不同的资源组中尝试使用不同的容器时,这个结果是什么?就像lavanya提到的线程一样?这很有效,似乎是Azure方面的错误
2021-04-21T14:16:22.5684170Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\azureclitaskscript1619014555799.ps1'"
2021-04-21T14:17:31.5066809Z ERROR: Client-Request-ID=*** Retry policy did not allow for a retry: Server-Timestamp=Wed, 21 Apr 2021 14:17:30 GMT, Server-Request-ID=***, HTTP status code=200, Exception='NoneType' object has no attribute 'findall'.
2021-04-21T14:17:31.5150108Z ERROR: 'NoneType' object has no attribute 'findall'
2021-04-21T14:17:32.1520724Z ##[error]Script failed with exit code: 1