Skip to content

Remove unused template parameters#

Operational Excellence · All resources · Rule · 2020_09 · Awareness

Each Azure Resource Manager (ARM) template parameter should be used or removed from template files.

Description#

ARM templates can optionally define parameters that can be reused throughout the template. Parameters that are not used may make template use more complex for no benefit.

Recommendation#

Consider removing unused parameters from Azure template files.

Notes#

This rule is deprecated from v1.36.0. By default, PSRule will not evaluate this rule unless explicitly enabled. See https://aka.ms/ps-rule-azure/deprecations.

Comments