Azure / Azure/PSRule.Rules.Azure

PSRule testing of parameter files contains to many parameters

Open
#1,993 0 comments 0 reactions 0 assignees View on GitHub
pillar: operational-execellence rule: deployment
Dominant language
PowerShell
Stars
447
Forks
109
Avg merge
2d 19h
Merged PRs (30d)
23

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.