【问题标题】:Error while deploying Azure resource template from Github through Visual Studio通过 Visual Studio 从 Github 部署 Azure 资源模板时出错
【发布时间】:2018-08-12 10:58:31
【问题描述】:

通过 Visual Studio 部署模板时,出现错误。

VM 在处理扩展“dscExtension”时报告失败。错误信息:

DSC 扩展执行失败:下载错误 https://stagef848a9a999ac4175a5c.blob.core.windows.net/myresourcegroup-stageartifactsscripts/WebServerConfig.ps1.zip 2 次尝试后:AuthenticationFailedServer 未能验证请求。确保值 授权标头正确形成,包括签名。 13:58:38 - 请求 ID:d731468a-601e-00be-15ea-b36a90000000 13:58:38 - 时间:2018-03-04T18:58:06.8482865Z签名不匹配。使用的签名字符串是 r

当我寻找解决方案时,有人建议追加 &comp=list&restype=container 到工件位置。我试过但失败了。

我应该在 JSON(特定参数)中添加此字符串的确切位置是什么?

【问题讨论】:

标签: azure-storage azure-blob-storage azure-virtual-machine


【解决方案1】:

DSC 扩展执行失败:在 2 次尝试后下载 https://stagef848a9a999ac4175a5c.blob.core.windows.net/myresourcegroup-stageartifactsscripts/WebServerConfig.ps1.zip 时出错:AuthenticationFailedServer 未能对请求进行身份验证。

根据您的错误消息,您提供的用于下载 blob 的 blob SAS token 似乎无效。您可以尝试直接下载带有 blob SAS 令牌 url 的 blob 来检查它。如果它无效,我们可以使用 azure portalAzure Storage explorer eas 生成 blob SAS 令牌。

【讨论】:

  • 您好,感谢您分享链接。我查看了解释如何创建 SAS 令牌的链接。那么是否必须已经创建存储帐户和 SAS 令牌才能部署模板?如果我必须动态生成 storageaccount 怎么办?如何处理 SAS 令牌创建?请帮帮我。
  • 我还尝试从 Visual Studio 部署 github 模板 (github.com/Azure/azure-quickstart-templates/tree/master/…)。它给出一个错误“VM 在处理扩展 'dscExtension' 时报告失败。错误消息:“DSC 扩展无法执行:在 29 次尝试后下载 github.com/Azure/azure-quickstart-templates/raw/master/… 时出错:请求被中止:无法创建 SSL/TLS 安全频道..”虽然我将协议从 https 更改为 http。请帮助。
  • 嗨,请提供任何帮助。找了很久的答案。非常感谢您的帮助。
  • @SureshBabu 如果我有空闲时间,我会查看您分享的template。如果有任何更新,我会在这里添加评论。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-05-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-06-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多