8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

TerraformでAzure管理時、 "features": required field is not set エラーが出るのを修正

Last updated at Posted at 2020-03-03

エラー発生

こんなconfigファイルを使っているとエラーが出るようになりました

azure.tf
provider "azurerm" {
}
Error: "features": required field is not set

原因

Provider Block: The Azure Provider now requires that a features block is specified within the Provider block, which can be used to alter the behaviour of certain resources

2020-02-24にリリースされた AzureRM provider v2.0.0 で必須ブロックが増えたようです。

解決方法

azure.tf
provider "azurerm" {
  features {}
}

空で良いので features ブロックを追加しましょう。

参考

8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?