Azure Redis缓存授权标头

时间:2017-12-18 12:42:46

标签: azure redis azure-redis-cache

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

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

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

1 个答案:

答案 0 :(得分:0)

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

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

相关问题