1

While performing the Resource Manager API calls for a few subscriptions I am getting the below error

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."}

API Call: https://management.azure.com/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current?api-version=2015-01-01

Is this related to the Subscriptions type or the RBAC?

1
  • Do the subscriptions which not work have any commonality? What the types of them? Commented Feb 11, 2019 at 9:41

1 Answer 1

1

You have to enable "Microsoft.ResourceHealth" Resource provider on your subscription. Please follow below document. https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services

Sign up to request clarification or add additional context in comments.

1 Comment

When you are not registered for Resource Health provider you get the below error: { "code": "AuthError", "message": "An error occured in authentication or authorization. Make sure the resource provider has been registered with this subscription" } Which is different from whet I am seeing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.