我正在管道中使用 az cli 任务,并尝试使用以下命令从带有 SAS token 的存储 blob 下载 zip,但是在执行过程中,%2 和 %3 从 token 中删除,然后失败并出现错误“无效 token ”有帮助吗?
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 已经编码,因此我无法编码或使用转义字符。
最佳答案
没关系!我刚刚在“https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10#use-azcopy-in-a-script ”上发现,在现有 % 旁边添加额外的 % 可以解决该项目。
关于azure - 无法在管道中使用 AZ CLI 下载 blob - SAS 值已从 SAS token 中删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61812368/