PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

PSRule testing of parameter files contains to many parameters

Open BernieWhite opened this issue 2 years ago • 0 comments

Discussed in https://github.com/Azure/PSRule.Rules.Azure/discussions/1990

Originally posted by JonasCordsen January 14, 2023 Hello @BernieWhite

We are running PSRule and found out that if our deployment parameter file has a parameters that the bicep file "main.bicep" does not cause an error.

This does give us an error when the bicep files then deploys to Azure. Is this by design, or is there an option that we can use, in order to get this to be testet?


Create a new rule that fails when additional parameters are specified within the parameter file that do not exist within the template/ Bicep.

BernieWhite avatar Jan 14 '23 09:01 BernieWhite