Skip to content

'Within' keyword with '-Reason' parameter is not working #1116

Answered by BernieWhite
ankur90Git asked this question in Q&A
Discussion options

You must be logged in to vote

@ankur90Git Yes this is an issue with Invoke-PSRule thanks for reporting the issue. I've logged it as a bug #1117.

The reason is there but there is an issue with wide view which is preventing the display of the property.

A temporary workaround would be:

Invoke-PSRule -Path $rulePath -InputPath $inputPath -OutputFormat wide | Format-Table RuleName,Outcome,@{ Name = 'Reason'; Expression = { $_.Reason } },Recommendation

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ankur90Git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants