Pharaoh
Pharaoh

Reputation: 752

Microsoft Azure : API Access error DisallowedOperation

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?

Upvotes: 1

Views: 1935

Answers (1)

Inzi
Inzi

Reputation: 346

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

Upvotes: 1

Related Questions