Azure / azure-storage-net

Microsoft Azure Storage Libraries for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assistance with AuthorizationPermissionMismatch exception in MediaInfo Azure Function

BrettThib opened this issue · comments

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

Blob and Azure Functions

Which version of the SDK was used?

Azure.Storage Blobs 12.8.3
Azure.WebJobs.Extensions.Storage 5.0.0-beta.2

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

.Net Core 3.1

What problem was encountered?

Attempting to implement an Azure Function that runs MediaInfo against a existing Blob using the sample program found at https://github.com/Azure-Samples/functions-dotnet-core-mediainfo/tree/main/

As far as I can tell, my function app should have appropriate access rights to the Blob container (Contributor and Reader and Data Access). Whenever I call the function with my blobUri parameter, I get the following:

"Service request failed.\r\nStatus: 403 (This request is not authorized to perform this operation using this permission.)\r\nErrorCode: AuthorizationPermissionMismatch\r\n\r\nHeaders:\r\nTransfer-Encoding: chunked\r\nServer: Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0\r\nx-ms-request-id: e004f14c-301e-0099-15e9-3d9f43000000\r\nx-ms-client-request-id: 2db202cd-c78f-4ba9-bb09-d6399cdeafed\r\nx-ms-version: 2020-06-12\r\nx-ms-error-code: AuthorizationPermissionMismatch\r\nDate: Fri, 30 Apr 2021 17:53:24 GMT\r\n"

How can we reproduce the problem in the simplest way?

Implement the code from https://github.com/Azure-Samples/functions-dotnet-core-mediainfo/tree/main/

Have you found a mitigation/solution?

No. Hoping someone can look at the request Id and provide some guidance.