Azure.RequestFailedException: This request is not authorized to perform this operation. Status: 403--This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure

Shaik, Parvez [CTR] 0 Reputation points
2024-08-21T04:20:06.6633333+00:00

Hi Team,

Am facing below error frequently, this is randomly happening and gets resolved after few minutes.

Please look into this and let us know any action to be taken from our end.

"errorCode": "UNEXPECTED_ERROR",

    "errorDescription": "Unexpected error",

    "errorDescription2": "Azure.RequestFailedException: This request is not authorized to perform this operation.\nRequestId:0cafb972-e003-0041-62e2-eed2d4000000\nTime:2024-08-15T07:13:24.3131153Z\nStatus: 403 (This request is not authorized to perform this operation.)\nErrorCode: AuthorizationFailure\n\nContent:\n�<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.\nRequestId:0cafb972-e003-0041-62e2-eed2d4000000\nTime:2024-08-15T07:13:24.3131153Z</Message></Error>

Thanks

Parvez Shaik

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
706 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,216 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Babafemi Bulugbe 3,705 Reputation points MVP
    2024-08-21T09:03:35.4633333+00:00

    Hello Shaik, Parvez [CTR],

    Thank you for posting your query in the Microsoft Q&A Community.

    A 403 status code typically signifies that the request was understood by the server, but the server is refusing to authorize it. Since this issue is happening randomly and resolves on its own after a few minutes, it suggests that the authorization configuration might be inconsistent or that there are intermittent issues with the Azure service or your network.

    If your application is using tokens for authorization, the tokens may be expiring or not being refreshed properly, leading to occasional failures.

    If the issue is related to a storage account which I presume, try regenerating the storage account access keys and updating your application with the new keys.

    Also, verify that no network or firewall rules are blocking the connection. You might need to allow access from all networks temporarily to test if this resolves the issue.

    If the issue continues to occur and you are unable to resolve it with the above steps, it might be worth raising a support ticket with Azure to investigate further.

    Let me know if this helps.

    Babafemi

    0 comments No comments

  2. Shaik, Parvez [CTR] 0 Reputation points
    2024-08-22T04:04:51.08+00:00

    hi @Babafemi Bulugbe

    we using manage identity to access Azure storage queue from Kubernetes pod application service. The AKS, Storage, MI  are all in same resource group. All NSG rule is opened for Queue private endpoint already created. It able to access but once in 2 or 3 weeks, it will throw unauthorize and it resolve itself after 10-15 mins.

    Below is the details where am getting above error, also please check highlighted nuget packages am already using latest ones

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.