Need error code- DisallowedOperation Details

Ron Weasley 0 Reputation points
2024-05-15T09:59:21.3233333+00:00

Hello Azure Team,

This is regarding error code DisallowedOperation, which is mentioned below for reference.

We have found one community reference where it is mentioned that this error will encounter when Resource Provider is marked as 'Unregister' under subscription however when it is not registered, we are receiving empty response from audit log API and not this specific error. Could you please let us know, in which scenario, we will receive below error code in Azure Monitor.

400 Bad Request {"code":"DisallowedOperation","message":"The current subscription type is not permitted to perform operations on any provider namespace. Please use a different subscription."}

Also provide error code reference documentation for Azure Monitor.

Thank You!!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,885 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 12,196 Reputation points
    2024-05-15T13:08:19.36+00:00

    @Ron Weasley - Welcome to Microsoft Q&A and thanks for reaching out to us.

    This error is usually encountered when the subscription type does not have the required permissions to perform the operation on the provider namespace or when the subscription is not authorized to access the resource or when the subscription is not registered for the resource provider.

    To resolve this issue, you can try the following steps:

    • Ensure that the subscription has the required permissions to access the resource and is registered with the resource provider.
    • If the issue persists, try using a different subscription that has the required permissions.

    Hope this helps. and please feel free to reach out if you have any further questions.


    Please don't forget to "Accept as Answer" and click "Yes" if the above response is helpful, so it can be beneficial to the community.