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.
resource “azurerm_kubernetes_cluster_node_pool” “linux101” {
availability_zones = [1, 2, 3]
enable_auto_scaling = false
kubernetes_cluster_id = “########”
mode = “User”
name = “linux101”
orchestrator_version = “1.20.9”
os_disk_size_gb = 30
os_type = “Linux” # Default is Linux, we can change to Windows
vm_size = “Standard_DS2_v2”
priority = “Regular” # Default is Regular, we can change to Spot with additional settings like eviction_policy, spot_max_price, node_labels and node_taints
node_labels = {
“nodepool-type” = “user”
“environment” = “production”
“nodepoolos” = “linux”
“app” = “java-apps”
}
tags = {
“nodepool-type” = “user”
“environment” = “production”
“nodepoolos” = “linux”
“app” = “java-apps”
}
terraform {
required_version = “1.1.1”
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.77.0"
}
}
}
hello jbardin i try to configure node on aks cluster but getting error
Error: Insufficient features blocks
│
│ on line 0:
│ (source code not available)
│
│ At least 1 “features” blocks are required.
Hi,
You have to add following
provider “azurerm” {
feature {}
}
2 Likes
It work but the question it’s why we need to do this? Thanks.