---
name: bicep-linter
description: "Use when adopting Bicep linter to assess this standard: Check Azure templates before provisioning"
---

# Apply Bicep linter

Configure levels in bicepconfig.json and compile entry templates in CI. Inspect resource-specific diagnostics before publishing a deployment.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Bicep linter.
2. Use Bicep linter in this repository to meet this standard: Check Azure templates before provisioning. Configure levels in bicepconfig.json and compile entry templates in CI. Inspect resource-specific diagnostics before publishing a deployment. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://learn.microsoft.com/azure/azure-resource-manager/bicep/linter) for configuration and prerequisites.

## Worked check

For a parameter flagged as unused, check references before removing it or using it in the intended resource. Recompile the same template and check that the diagnostic clears.

[Evidence and example](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter-rule-no-unused-parameters)
