Skip to content

Question about Azure.APIM.PolicyBase Rule and <base /> Element #3412

Answered by BernieWhite
mikkelh-SDU asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mikkelh-SDU Thanks for the question.

I think the problem would be that your policy is missing one or more of the sections inbound, backend, outbound, or on-error.

That's not specifically called out in the documentation, although the example includes it. But that could easily be a point of confusion, so we should add it. #3413

https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/Azure.APIM.Rule.ps1#L324-L336


Try adding the missing sections and inherit them from base. I hope that helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mikkelh-SDU
Comment options

Answer selected by mikkelh-SDU
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