Error: Insufficient features blocks

Using azurerm version 2.56.0
Terraform version 0.15.4

whenever I run “terraform plan” command it throw me this error Error: Insufficient features blocks

Even though I have placed features block like this

terraform {
required_providers {
“azurerm” = {
source = “hashicorp/azurerm”
version = “>= 2.56.0”
}
}
}
provider {
tenant_id = “xxxxx”
subscription_id = “xxxxx”
client_id = “xxxxx”
client_secret = “xxxxx”
features {}
}

Hi @chetan.rana, I’m not sure how you are using this configuration, as a providers block is not valid and should produce and error and suggestion like:

│ Error: Unsupported block type
│
│   on main.tf line 9:
│    9: providers {
│
│ Blocks of type "providers" are not expected here. Did you mean "provider"?

The AzureRM provider does require a “features” block, but that must be put within the provider configuration.

provider "azurerm" {
  tenant_id       = "xxxxx"
  subscription_id = "xxxxx"
  client_id       = "xxxxx"
  client_secret   = "xxxxx"
  features {}
}

Hi @jbardin I have corrected the typo and using the provider block in a similar way like you have shared and getting this error

Error: Insufficient features blocks

It sounds like you have an unconfigured provider somewhere in your configuration. We would need a complete example in order to see where exactly.