Skip to content

Terraform is registering all the providers in Azure subscription and failing sometime #4

Description

@sanketnagdive

For new azure subscription we have observed that few providers needs to be register or else script will try to register all the providers/services in Azure which are not required as well. Its best practice to make sure only the required services are registered.
Also, script is failing and giving the following error while registering the providers some times
"Getting error after running ./install.sh ""│ More information on the ""skip_provider_registration"" flag can be found here:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#skip_provider_registration

│ Original Error: Cannot register providers: Microsoft.AVS. Errors were: waiting for Subscription Provider (Subscription: ""d9908e94-6899-4ef6-8a14-5a185b3b7254""
│ Provider Name: ""Microsoft.AVS"") to be registered: context deadline exceeded

│ with provider[""registry.terraform.io/hashicorp/azurerm""],
│ on main.tf line 1, in provider ""azurerm"":
│ 1: provider ""azurerm"" {"

We can instruct the user to make sure the required services/providers are registered and update the terraform scripts to skip the registration of all the services. I have raised PR for the same
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_provider_registration

cc @gandham-santhosh @mohitga @vinukumar-vs @santhosh-tg @keshavprasadms

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions