Technical questionAccepted answer
Terraform azurerm 2.x Error: "features": required field is not set
Marcus Adams
Feb 24
0 views1
So azurerm updated to 2.0 a few hours ago....
My main code is version locked for safety, but I'm doing some testing to see what's changed from the public beta of 1.44 and now I'm getting this error on any TF command apart from terraform init.
has anybody else come upon this?
1 answer
Accepted answer · original discussion
Marcus Adams
PermalinkFeb 24
OK, running terraform in debug mode showed it was at the provider level that the error was being thrown.
It's not listed in the 2.0 upgrade guide but if you look at the provider docs it now shows a features{} block.
So at a minimum the provider now needs to look like:
provider "azurerm" {
features {}
}
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.