Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.07 KB

File metadata and controls

29 lines (18 loc) · 1.07 KB
title Linter rule - no unused parameters
description Linter rule - no unused parameters
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

Linter rule - no unused parameters

This rule finds parameters that aren't referenced anywhere in the Bicep file.

Linter rule code

Use the following value in the Bicep configuration file to customize rule settings:

no-unused-params

Solution

To reduce confusion in your template, delete any parameters that are defined but not used. This test finds all 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.

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="A screenshot of using Quick Fix for the no-unused-parameters linter rule.":::

Next steps

For more information about the linter, see Use Bicep linter.