No registered resource provider found during policy assignment

YoungMaster 1 Reputation point
2022-04-11T07:07:00.28+00:00

When assigning a custom policy, I get an error message below:

No registered resource provider found for location 'eastus' and API version '2022-01-01-preview' for type 'namespaces/authorizationrules'.
The supported api-versions are '2014-09-01, 2015-08-01, 2017-04-01, 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01'. The supported locations are ''
.

I have checked the resource providers against a working subscription and the providers that are registered are identical. I have also tried to unregister and reregister the resource providers but to no avail.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
403 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
606 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 10,711 Reputation points
    2022-04-12T06:15:40.207+00:00

    @YoungMaster Welcome to Microsoft Q & A Community Forum. As you mentioned, you are trying to create a custom policy and I assume you are using "DeployIfNotExists" effect. You are prompted with above error as the api version of the resource type 'namespaces/authorizationrules' which you have provided is incorrect. The error message already contains the list of all supported versions. Update it to correct version and retry the custom policy.

    To check the list of api versions available for 'namespaces/authorizationrules', refer this document.

    0 comments No comments