terraform-linters/tflint-ruleset-azurerm

TFLint ruleset for terraform-provider-azurerm

141

stars

524

commits

Go

primary language

Sep 9, 2026

updated

azure
azure-resource-manager
linter
linters
terraform
tflint
tflint-ruleset

README

TFLint Ruleset for terraform-provider-azurerm

Build Status GitHub release License: MPL 2.0

TFLint ruleset plugin for Terraform Provider for Azure (Resource Manager)

Requirements

  • TFLint v0.46+
  • Go v1.26

Installation

You can install the plugin by adding a config to .tflint.hcl and running tflint --init:

plugin "azurerm" {
    enabled = true
    version = "0.32.0"
    source  = "github.com/terraform-linters/tflint-ruleset-azurerm"
}

Rules

200+ rules are available. See the documentation.

Building the plugin

Clone the repository locally and run the following command:

$ make

You can easily install the built plugin with the following:

$ make install

Note that if you install the plugin with make install, you must omit the version and source attributes in .tflint.hcl:

plugin "azurerm" {
    enabled = true
}

Add a new rule

If you are interested in adding a new rule to this ruleset, you can use the generator. Run the following command:

$ go run ./rules/generator

Follow the instructions to edit the generated files and open a new pull request.

Contributors

wata727

258 commits

dependabot[bot]

189 commits

JannoTjarks

14 commits

terraform-linters/tflint-ruleset-azurerm

TFLint ruleset for terraform-provider-azurerm

141

stars

524

commits

Go

primary language

Sep 9, 2026

updated

azure
azure-resource-manager
linter
linters
terraform
tflint
tflint-ruleset

README

TFLint Ruleset for terraform-provider-azurerm

Build Status GitHub release License: MPL 2.0

TFLint ruleset plugin for Terraform Provider for Azure (Resource Manager)

Requirements

  • TFLint v0.46+
  • Go v1.26

Installation

You can install the plugin by adding a config to .tflint.hcl and running tflint --init:

plugin "azurerm" {
    enabled = true
    version = "0.32.0"
    source  = "github.com/terraform-linters/tflint-ruleset-azurerm"
}

Rules

200+ rules are available. See the documentation.

Building the plugin

Clone the repository locally and run the following command:

$ make

You can easily install the built plugin with the following:

$ make install

Note that if you install the plugin with make install, you must omit the version and source attributes in .tflint.hcl:

plugin "azurerm" {
    enabled = true
}

Add a new rule

If you are interested in adding a new rule to this ruleset, you can use the generator. Run the following command:

$ go run ./rules/generator

Follow the instructions to edit the generated files and open a new pull request.

Contributors

wata727

258 commits

dependabot[bot]

189 commits

JannoTjarks

14 commits

Languages

Go

85.3%

HCL

12.5%

Go Template

2.1%