Getting errors when I run Terraform on VS Code : features required field is not set

Hi all.

I already have the empty features block, as per the below, but I continue to receive the error when running terraform plan:

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

I have also tried pinning the provider version with “=2.0.0”; “=2.1.0”; “=2.2.0”; “=2.3.0”; “=2.4.0”, and each time deleting the .terraform directory, and doing a fresh init, and plan each time. but still get same error every time

Normally I’ve been using “>=2.0.0” ever since the 2.0 AzureRm Provider got released, and I originally added the features block without issue, but now with this error that tells me there is no features block, when in fact I do have a features block - that’s why I’ve been trying all these different version combinations but without luck.

I’ve also tried all of the above with different versions of terraform.exe (0.12.19; 0.12.21; 0.12.24), also deleting the .terraform directory with each new version.

Error: “features”: required field is not set

Any advice would be appreciated. Thank you

Tested all the above on Windows 10 v1809