Deprecation of notProcessedWarning #2705
-
Hi all! I was working on moving towards the option We are using:
For starting ps-rule we use the azure pipeline task: Details (on ps-rule.yaml config file) When using When changing this to Also tried to use Thnx in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Danielsn116, thanks for the question. How you are going about setting this option appears to be correct. i.e. you are replacing The problem may be with the syntax. Are you setting this option via If you are this should look something like: execution:
unprocessedObject: Ignore Noting in YAML:
Setting this option is other ways is documented here: https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/#executionunprocessedobject Hopefully that helps, otherwise let me know. |
Beta Was this translation helpful? Give feedback.
-
You are totally right! It was the syntax/case. This is because of my inexperience with YAML. I just copy pasted from the documentation where it said Thnx! |
Beta Was this translation helpful? Give feedback.
Hi @Danielsn116, thanks for the question.
How you are going about setting this option appears to be correct. i.e. you are replacing
execution.notProcessedWarning
=false
withexecution.unprocessedObject
=Ignore
.The problem may be with the syntax. Are you setting this option via
ps-rule.yaml
?If you are this should look something like:
Noting in YAML:
execution
andunprocessedObject
should match case, since YAML is case-sensitive.execution
key is not indented.unprocessedObject
is indented with 2 spaces. YAML can be a bit specific, although it can handle a different number of spaces as long as it is done consistently.Setting this opt…