Azure-docs: Error: "features": required field is not set

Created on 4 Mar 2020  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

Following this tutorial results in this error on command terraform apply.

Additional info:
OS: Freshly installed Ubuntu 18.04 azure VM
Terraform:
v0.12.21
provider.azurerm v2.0.0
AZ:
{
"azure-cli": "2.1.0",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.1.0",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {}
}


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 assigned-to-author doc-bug triaged virtual-machines-linusvc

Most helpful comment

@rudolfdobias Thanks for the feedback. We are updating all docs affected by the Terraform 2.0 release.

All 9 comments

In reading the terraform docs, include a features: {} in the provider:

provider "azurerm" {
version = "=2.0.0"
features {}
}

Thanks for the feedback! We are currently investigating and will update you shortly.

Hi, i'm getting the same error too at the same level.
When will we be getting feedback on the fix?

this issue seems to have been resolved in this link: https://github.com/terraform-providers/terraform-provider-azurerm/issues/5880

solution from terraform pages: https://www.terraform.io/docs/providers/azurerm/index.html

configure the test.tf file to reflect the change below

Configure the Azure Provider

provider "azurerm" {
# whilst the version attribute is optional, we recommend pinning to a given version of the Provider
version = "=2.0.0"
features {}
}

Thanks for sharing the update. I have assigned the issue to the content author to investigate further and update the document as appropriate.

@TomArcherMsft This information needs to be added to the documentation as it is causing the error. The details are provided here.

@rudolfdobias Thanks for the feedback. We are updating all docs affected by the Terraform 2.0 release.

Please update the DevOps documentation and Microsoft Learn links on automation too
https://docs.microsoft.com/en-gb/learn/modules/provision-infrastructure-azure-pipelines/8-run-terraform-pipeline

@rudolfdobias @robcamer This should be resolved. Please advise if not and will reopen. #please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bityob picture bityob  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

Favna picture Favna  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments