Skip to content

Remove unused template variables#

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

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


ARM templates can optionally define variables that can be reused throughout the template. Variables that are not used may add template complexity for no benefit.


Consider removing unused variables from Azure template files.


This rule is deprecated from v1.36.0. By default, PSRule will not evaluate this rule unless explicitly enabled. See