Skip to content

No rules are being processed #1426

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

You must be logged in to vote

@Crowiiie Thanks for the question. Three things to try that should resolve this.

Use PSRule for Azure

Azures resources from a Bicep file are a little tricky because they need to be expanded (to resolve parameters, variables, functions, and modules). We've already done a lot of the work through PSRule for Azure. Have a look here Installation and Creating your pipeline. The AZURE_BICEP_FILE_EXPANSION configuration option in your ps-rule.yaml is for PSRule for Azure, and won't work if it is not installed.

If you do not want to use the Azure Pipeline task installable from the Visual Studio Marketplace suggested by these docs, which is the simplest path, then:

  • Install PSRule for Azure by using

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Crowiiie
Comment options

You must be logged in to vote
0 replies
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