Azure Redis缓存授权标头

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

我正在研究Azure Redis缓存,我正在使用REST API来创建缓存。我得到的回应是:

HTTP/1.1 401 Unauthorized
{
  "error": {
    "code": "AuthenticationFailed",
    "message": "Authentication failed. The 'Authorization' header is missing."
  }
}

我在文档中找不到任何Authorization header。有人可以建议生成授权标头的过程吗?

azure redis azure-redis-cache
1个回答
0
投票

基本上创建一个Azure Redis Cache帐户操作是Azure Resource Manager (ARM)操作。每个ARM操作都需要一个必须包含在请求中的authorization头。由于您未在请求中包含此标头,因此您收到此错误。

有关如何验证ARM API请求的详细说明,请参阅Resource Manager REST APIs

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