# Dreaded "Error: Insufficient features blocks"

**URL:** <https://discuss.hashicorp.com/t/dreaded-error-insufficient-features-blocks/35300>\
**Category:** Azure\
**Created:** [February 5, 2022, 8:15pm UTC](https://discuss.hashicorp.com/t/dreaded-error-insufficient-features-blocks/35300 "2022-02-05T20:15:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaun.m.potts](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shaun.m.potts/32/24119_2.png) [@shaun.m.potts](https://discuss.hashicorp.com/u/shaun.m.potts)\
**Post date:** [February 5, 2022, 8:15pm UTC](https://discuss.hashicorp.com/t/dreaded-error-insufficient-features-blocks/35300/1 "2022-02-05T20:15:01Z")

</div>

hello, hoping someone else has run into this issue. i have a very strange issue using terraform cloud hooked up to azure devops services, when using remote plan execution. plan runs fine locally, when i commit the code the plan that runs on terraform cloud errors out saying

```auto
Error: Insufficient features blocks
│
│ on line 0:
│ (source code not available)
│
│ At least 1 “features” blocks are required.

```

below code reproduces the issue for me in a fresh repo and a fresh workspace (identifiers edited out)

```auto
terraform {
  cloud {
    organization = "xxx"
    workspaces {
      tags = ["xxx"]
    }
  }
}
provider "azurerm" {
  features { }
}
resource "azurerm_resource_group" "xxx-shared-resources-networks" {
    name = "xxx-shared-resources-networks"
    location = "Central US"
}

```

honestly about to throw in the towel on using terraform cloud considering time spent on this as it genuinely seems like a bug, but i figured i’d do a hail mary here and see if the community could help.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![sgarciajaramillo](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/sgarciajaramillo/32/37850_2.png) [@sgarciajaramillo](https://discuss.hashicorp.com/u/sgarciajaramillo)\
**Post date:** [February 7, 2022, 5:50am UTC](https://discuss.hashicorp.com/t/dreaded-error-insufficient-features-blocks/35300/2 "2022-02-07T05:50:54Z")

</div>

@shaun.m.potts

Hello Shaun,

This may not be it but, could you remove that space between the `features { }` like so `features {}` and try again?

thanks!

---

<div class="post-metadata">

**Author:** ![konradkrawitowski](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/konradkrawitowski/32/27593_2.png) [@konradkrawitowski](https://discuss.hashicorp.com/u/konradkrawitowski)\
**Post date:** [April 22, 2022, 7:30pm UTC](https://discuss.hashicorp.com/t/dreaded-error-insufficient-features-blocks/35300/3 "2022-04-22T19:30:10Z")

</div>

HI, similar problem - case is not in additional space for brakets or so.

how about this:

2 providers - “microsoft/azuredevops” and “hashicorp/azurerm”  
normally (previously worked with azuredevops) the first provider doesn’t accept any features in provider block:

```auto
Error: Unsupported block type
│
│ on modules\ADO\provider.tf line 13, in provider "devops":
│ 13: features {}
│
│ Blocks of type "features" are not expected here.

```

when I’m removing _features_ block - then I get:

```auto
│ Error: Insufficient features blocks
│
│ on <empty> line 0:
│ (source code not available)
│
│ At least 1 "features" blocks are required.

```

WTF???

my providers looks like:

```auto
terraform {
  required_providers {
    azurerm = {
      source = "hashicorp/azurerm"
      version = ">= 3.2.0"
    }
  }
}

provider "azurerm" {
  features {
    log_analytics_workspace {
      permanently_delete_on_destroy = true
    }
    resource_group {
      prevent_deletion_if_contains_resources = true
    }
    key_vault {
      purge_soft_delete_on_destroy = true
      purge_soft_deleted_secrets_on_destroy = true
      purge_soft_deleted_certificates_on_destroy = true
    }
  }
  skip_provider_registration = true
}

```

and

```auto
terraform {
  required_providers {
    devops = {
      source = "microsoft/azuredevops"
      version = ">= 0.2.1"
    }
  }
}

provider "devops" {
  org_service_url = var.ado_organization_url
  personal_access_token = var.ado_pat
}

```

and versions are:

```auto
Terraform v1.1.9
on windows_386
+ provider registry.terraform.io/hashicorp/azurerm v3.3.0
+ provider registry.terraform.io/hashicorp/random v3.1.3
+ provider registry.terraform.io/microsoft/azuredevops v0.2.1

```

(searching rest of a code for words provider/providers/etc… is not giving me any other matches - read that as there is no other places with provider definitions.)

even disabling (commenting) whole 2nd provider (azuredevops) and removing module/ADO from code tree - I’m getting the same error type.  
Funny part:  
before I started modifying code for azuredevops and it’s functions - the code was running correctly, now removing everything back is not - magic…
