【发布时间】:2016-09-15 10:25:11
【问题描述】:
我正在尝试为 blob 存储容器创建 SAS URL。我尝试了多个存储帐户和多种创建 SAS 的方法,当我在浏览器中测试 SAS URL 时,它们都给出了这个结果:
<Error>
<Code>AuthenticationFailed</Code>
<Message>
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:d95bf34f-0001-0022-4430-b1a25b000000 Time:2016-05-18T18:12:30.5552096Z
</Message>
<AuthenticationErrorDetail>
Signature did not match. String to sign used was rl 2016-05-18T18:10:00Z 2016-05-19T18:10:00Z /blob/cloudappmanager/$root 2015-04-05
</AuthenticationErrorDetail>
</Error>
我尝试了Storage Explorer(右键单击容器,获取 SAS,单击默认值确定):
我尝试了旧的存储资源管理器:
我尝试了 PowerShell:
PS C:\Users\virklba> $context = New-AzureStorageContext -StorageAccountName msuscoreaprod
cmdlet New-AzureStorageContext at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
StorageAccountKey: xxxxxxxxx
PS C:\Users\virklba> New-AzureStorageContainerSASToken -Name aadlogs -Context $context -FullUri -Permission rl
https://msuscoreaprod.blob.core.windows.net/aadlogs?sv=2015-04-05&sr=c&sig=xxxxxxxx&se=2016-05-18T19%3A47%3A56Z&sp=rl
所有结果都相同。有没有其他人看到这种行为,还是只有我一个人?
【问题讨论】:
-
您确认本地机器的系统时钟是最新的了吗?另外:您介意尝试一个实验,将开始时间设置为过去一个小时(或一天)吗?
-
系统时钟准确。我再次尝试将开始时间设置为昨天,结果相同。我还与我们的一位顾问谈过;他在单独的机器、单独的 Azure 环境中看到了相同的行为。
-
您在浏览器中测试的 URL 是什么?
标签: azure azure-storage