Azure / azure-storage-net

Microsoft Azure Storage Libraries for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storage Blob download failing intermittently when using MSI

videepthMSFT opened this issue · comments

Which service(blob, file, queue, table) does this issue concern?

So as part of the Solution architecture, instead of using the connection string we use the role assignment "Storage Blob Data contributor" to the respective function app. Now the issue is , blob download fails intermittently as MSI fails to authenticate , which is causing an issue.

Stack Trace:

Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:cf8e26b9-e01e-003b-4b39-8c1059000000
Time:2020-09-16T14:59:32.1452857Z
Status: 401 (Server failed to authenticate the request. Please refer to the information in the www-authenticate header.)
ErrorCode: InvalidAuthenticationInfo

Headers:
Server: Microsoft-HTTPAPI/2.0
x-ms-request-id: cf8e26b9-e01e-003b-4b39-8c1059000000
x-ms-error-code: InvalidAuthenticationInfo
Access-Control-Expose-Headers: REDACTED
Access-Control-Allow-Origin: *
WWW-Authenticate: REDACTED
Date: Wed, 16 Sep 2020 14:59:31 GMT
Content-Length: 404
Content-Type: application/xml

Which platform are you using? (ex: .NET Core 2.1)

.Net Core 3.1

How can we reproduce the problem in the simplest way?

image

Have you found a mitigation/solution?

No

Hello I am dealing with the same issue. I activated managed identity for a app service and added the app service as a contributor role to the storage account. I am using the new Azure.Storage libraries to access for example Blob-Storage in Code.

I am using the Azure Service Authentication in Visual Studio 2019 for local development. But immediately after I want to access a blob in my storage account I get the same exception.

I am seeing the same issue is anyone going to respond to this query ?

Same problem for me. Anyone have a solution?

Same problem for me. Any update on the solution ?