代码之家  ›  专栏  ›  技术社区  ›  VivekAnandChakravarthy

使用ADF Web活动列出存储帐户中的表失败,出现授权错误

  •  0
  • VivekAnandChakravarthy  · 技术社区  · 1 年前

    我添加了参数源存储帐户sas令牌,如下所示:

    enter image description here

    然后我添加了web活动来列出存储帐户的表,该帐户只有500个表,但我收到了身份验证失败的错误:

    enter image description here

    Web活动-列表表

    URL: @concat('https://srcstoreacc131.table.core.windows.net/Tables', pipeline().parameters.sourceSAS)
    Headers: Accept-application/json # Add as dynamic content value
    Method: GET
    

    错误 :

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
      <code>AuthenticationFailed</code>
      <message xml:lang="en-US">Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    Time:2024-04-23T12:32:02.1385780Z</message>
    </error>
    
    1 回复  |  直到 1 年前
        1
  •  1
  •   Bhavani    1 年前

    确保您提供了正确的SAS。生成SAS时,请授予以下权限,如下所示:

    enter image description here

    提供如下所述的网络活动URL:

    @concat('https://<storageAccountName>.table.core.windows.net/Tables',pipeline().parameters.SAS)
    

    配置web活动,如下所示:

    enter image description here

    您将能够成功列出表格,如下所示:

    enter image description here

    有关更多信息,请参阅 MS document .