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

InCollect ErrorMessage("features": required field is not set) #24842

Closed
arukiidou opened this issue May 4, 2020 · 2 comments
Closed

InCollect ErrorMessage("features": required field is not set) #24842

arukiidou opened this issue May 4, 2020 · 2 comments

Comments

@arukiidou
Copy link

arukiidou commented May 4, 2020

InCollect ErrorMessage.
The error message shows "features": required field is not set",
But it was InCollect ErrorMessage.

Terraform Version

Terraform v0.12.24
+ provider.azurerm v2.8.0

Terraform Configuration Files(InCollect)

[azurerm.tf]
provider "azurerm" {
  version = "=2.8.0"
  features {}
}
[main.tf]
provider "azurerm" {
  source                = "../modules/azurerm"
}
module "resource_group" {
  source                = "../modules/resource_group"
  
  location              = local.location
  resource_group_name   = "${local.application_name}-${local.environment_type}"
  tags_application_name = local.application_name
  tags_environment_type = local.environment_type
}

Debug Output

None.

Crash Output

None.

Expected Behavior

For Example...

> terraform plan
terraform : [31m
発生場所 行:1 文字:1
+ terraform plan
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: ([31m:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
[1m[31mError: [0m[0m[1m provider is not applicatable module files. [0m
[0m[0m[0m

Actual Behavior

terraform : [31m
発生場所 行:1 文字:1
+ terraform plan
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: ([31m:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
[1m[31mError: [0m[0m[1m"features": required field is not set[0m
[0m[0m[0m

Steps to Reproduce

  1. Not Included "provider - azurerm" from module, and not in the same folder
    (See Behavior/Configration Files)

  2. Included "provider - azurerm" in main.tf

[main.tf]
provider "azurerm" {
  version = "=2.8.0"
  features {}
}
module "resource_group" {
  source                = "../modules/resource_group"
  
  location              = local.location
  resource_group_name   = "${local.application_name}-${local.environment_type}"
  tags_application_name = local.application_name
  tags_environment_type = local.environment_type
}
  1. terraform plan
    (SUCSESS)

Additional Context

None.

References

#5880

@ghost
Copy link

ghost commented May 19, 2020

This issue has been automatically migrated to hashicorp/terraform-provider-azurerm#7013 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-azurerm#7013.

@ghost ghost closed this as completed May 19, 2020
@ghost
Copy link

ghost commented Jun 19, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jun 19, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants