Share via

trying to follow this doc: https://learn.microsoft.com/en-us/azure/azure-monitor/vm/vminsights-enable-policy?WT.mc_id=Portal-Microsoft_Azure_Security#policies-for-azure-virtual-machine-scale-sets

Anonymous
2023-06-08T14:23:42.9033333+00:00

Hello, trying to follow this doc: https://learn.microsoft.com/en-us/azure/azure-monitor/vm/vminsights-enable-policy?WT.mc_id=Portal-Microsoft_Azure_Security#policies-for-azure-virtual-machine-scale-sets

but I am presented with an error that says: Something went wrong, not all data may be correct. Please refresh this page or try again later. Contact support or use Provide Feedback if issue persists. httpStatusCode: 400 errorCode: DisallowedOperation errorMessage: The current subscription type is not permitted to perform operations on any provider namespace. Please use a different subscription.

I have an older MOSP account type and I am wondering if this is the cause of the error?

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,566 Reputation points Moderator
    2023-06-09T07:27:14.23+00:00

    @Anonymous , thank you for the question.

    I am not sure if MOSP account could be the cause for this issue. I would suggest checking the following and see if it helps:

    1. Ensure that Microsoft.PolicyInsights resource provider is registered for the subscription where you are getting the error. To do it, go to "Subscription" in portal --> Select your subscription (if you have many) --> Select "Resource Provider" from the resource menu of this subscription.
      Here, search for "Microsoft.PolicyInsights" and make sure that it is registered (if not, register it using the "Register" button:

    User's image

    1. Ensure that you have atleast "Resource Policy Contributor" role at subscription level. If that does not help, try to assign the policy again using the "Contributor" role at subscription level to check if the assignments are getting blocked due to incorrect role assignment.

    If you still face this issue, please review "activity logs" from "Azure Monitor" --> "Activity log". There may be a delay of couple of minutes before these logs are visible here related to the assignment operation. The Activity logs should contain additional information for the reason of failure (check the JSON view in logs for details).

    Hope this helps.

    If the answer did not help, please share any additional information that you get from activity logs. If there is no additional information available in the activity log, you might have to reach out to "Azure Support" to create a support ticket so that it can be investigated from the backend too.

    If the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    Was this answer helpful?

    0 comments No comments

Your answer

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