Skip to content

Does this rule https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Template.UseParameters/ test parameters from the parameter file #2465

Answered by BernieWhite
JonasCordsen asked this question in Q&A
Discussion options

You must be logged in to vote

@JonasCordsen If a parameter file is missing requires parameters expand will flag an error.

A parameter file with too many parameters is not flagged today. But raised as an issue here: #1993

This rule specifically, flag if a parameter is defined but not used. It would apply if you defined a template or Bicep code with parameters but then did not reference those parameters anywhere. It doesn't apply to parameter files today.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JonasCordsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants