无法在Pipeline中使用AZ CLI下载blob--SAS值从SAS令牌中被移除。

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

我在管道中使用 az cli 任务,并试图使用下面的命令从存储 blob 下载 zip,但在执行过程中,%2 和 %3 被从令牌中移除,然后以 "无效令牌 "的错误而失败。

az storage blob download --container-name testcontainer --name new.zip --file C:\Test\new.zip --account-name mansing --sas-token "sv=2019-03-28&si=test-v1.0.0&sr=b&sig=uityesfggjXAxG2tvNs7y88K%2FnKPMsO8iuKPGurEJtS4%3D"

我相信SAS token已经被编码,所以我不能编码或使用转义字符。

azure azure-devops azure-storage-blobs azure-cli
1个回答
0
投票

不要紧! 我刚刚在"https:/docs.microsoft.comen-usazurestoragecommonstorag-use-azcopy-v10#use-azcopy-in-a-script。",在现有的%旁边增加额外的%就可以解决这个项目。

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