Azure / Azure/PSRule.Rules.Azure

Check order of APIM policy elements

Open
#2,143 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.