Azure / Azure/PSRule.Rules.Azure
Check order of APIM policy elements
Open
pillar: operational-execellence
rule: api-management
- Dominant language
- PowerShell
- Stars
- 447
- Forks
- 109
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 23
Description
### Existing rule
_No response_
### Suggested rule
Ordering of certain elements within APIM policy may have undesirable behaviour.
This rule checks for:
- `cors` and `set-variable` properties are allowed above base.
- Only `set-variable` is allowed above the `cors` property.
### Pillar
Operational Excellence
### Additional context
Related to #2140
- [Common configuration issues](https://learn.microsoft.com/azure/api-management/cors-policy)
Contributor guide
Assessment
This issue has not been assessed yet.