Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "features": required field is not set #49458

Closed
rudolfdobias opened this issue Mar 4, 2020 — with docs.microsoft.com · 9 comments
Closed

Error: "features": required field is not set #49458

rudolfdobias opened this issue Mar 4, 2020 — with docs.microsoft.com · 9 comments

Comments

Copy link

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.

Copy link

robcamer commented Mar 4, 2020

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

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

@Karishma-Tiwari-MSFT
Copy link
Member

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

Copy link

ukez15 commented Mar 5, 2020

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

Copy link

ukez15 commented Mar 5, 2020

this issue seems to have been resolved in this link: hashicorp/terraform-provider-azurerm#5880

Copy link

ukez15 commented Mar 5, 2020

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 {}
}

@Karishma-Tiwari-MSFT
Copy link
Member

Karishma-Tiwari-MSFT commented Mar 5, 2020

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.

@TomArcherMsft
Copy link
Contributor

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

@ukez15
Copy link

ukez15 commented Mar 6, 2020

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

@TomArcherMsft
Copy link
Contributor

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

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

No branches or pull requests

7 participants