PSRule.Rules.Azure
PSRule.Rules.Azure copied to clipboard
PSRule testing of parameter files contains to many parameters
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.