Resource Provider Registration Issue

Raghav Kadam 0 Reputation points
2024-10-14T07:21:56.7866667+00:00

While i am on doing terraform plan its showing below error-

Planning failed. Terraform encountered an error while generating this plan.

│ Error: Encountered an error whilst ensuring Resource Providers are registered.

│ Terraform automatically attempts to register the Azure Resource Providers it supports, to

│ ensure it is able to provision resources.

│ functionality by adding the following to the Provider block:

│ resource_provider_registrations = "none"

│ may appear misleading - for example:

│ Could suggest that the Resource Provider "Microsoft.Foo" requires registration, but

│ this could also indicate that this Azure Region doesn't support this API version.

│ More information on the "resource_provider_registrations" property can be found here:

│ Encountered the following errors:

│ waiting for Subscription Provider (Subscription: "78a6d8eb-ee26-4eb1-97fd-d6288e2ab02e"

│ with provider["registry.terraform.io/hashicorp/azurerm"],

│ on provider.tf line 10, in provider "azurerm":

│ 10: provider "azurerm" {

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,670 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 18,676 Reputation points MVP
    2024-10-15T03:53:47.38+00:00

    Hi,

    I think, the following code will help (skip the azurerm resource provider registration)

    
    provider "azurerm" {
      skip_provider_registration = "true"
    

    Got this from StackOverflow

    Hope this helps.


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

Your answer

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