title | description | ms.topic | ms.custom | ms.date |
---|---|---|---|---|
Linter rule - no unused parameters |
Linter rule - no unused parameters |
reference |
devx-track-bicep |
03/20/2024 |
This rule finds parameters that aren't referenced anywhere in the Bicep file.
Use the following value in the Bicep configuration file to customize rule settings:
no-unused-params
To reduce confusion in your template, delete any parameters that are defined but not used. This test finds any parameters that aren't used anywhere in the template. Eliminating unused parameters also makes it easier to deploy your template because you don't have to provide unnecessary values.
You can use Quick Fix to remove the unused parameters:
:::image type="content" source="./media/linter-rule-no-unused-parameters/linter-rule-no-unused-parameters-quick-fix.png" alt-text="The screenshot of No unused parameters linter rule quick fix.":::
For more information about the linter, see Use Bicep linter.