Skip to content

Rule.Inclusion Option #2676

Answered by BernieWhite
paulmcclbg asked this question in Q&A
Feb 5, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@paulmcclbg If you set Rule.Include to Azure.APIM.* then it should work. But it wasn't intended to be used like this and there is some limitations.

  • Rule.Include will only support one entry.
  • The wildcard will match the short name only not the full module\rule name.

Wildcards were intended to support usage via the -Name parameter of Invoke/Assert/Get-PSRule PowerShell cmdlets.

If you only want to run Azure.APIM.* rules this option should work.


Generally, running a subset of rules is supported by a baseline but they don't address your request specifically, because they have the same limitation. However you could generate a baseline by using this script as an example: https://github.com/Az…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulmcclbg
Comment options

Answer selected by paulmcclbg
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