This repository was archived by the owner on May 10, 2025. It is now read-only.
CAF_EnvironmentTag tag key should be mandatory #138
ReneRebsdorf
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
@ReneRebsdorf It's a fair comment, and maybe the rule should be like that. Currently it validates the environments used. So you'd need to combine it with i.e. If you have Azure Policy applying the tag from the resource group to all child resources, you may not require tags on IaC resources only resource groups. Does that make sense or do you still feel there is a strong case for simplification such as you have suggested? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Correct me if I am wrong, but when reading PSRule.Rules.CAF: If a resource is missing the Environment tag as per CAF_EnvironmentTag, then it is not checked.
E.g. if CAF_Environments is "dev" and "prod", but "Environment" is not set, there is no failure in tests for the missing "Env: dev" or "Env: prod".
On the topic of tags, CAF has this to say none of 'Minimum suggested tags' are referenced here
Is this by design?
Beta Was this translation helpful? Give feedback.
All reactions