Azure / Azure/PSRule.Rules.Azure

Apply policy rules based on scope

Open
#1,891 0 comments 0 reactions 0 assignees View on GitHub
enhancement feature: policy-as-rules
Dominant language
PowerShell
Stars
447
Forks
109
Avg merge
2d 19h
Merged PRs (30d)
23

Description

Policy assignments are define against a specific scope. Currently if policy as rules are exported from Azure Policy all rules will apply to matching resource regardless of resource scope.

To support resource scope policy rules should use a selector or sub-selector to apply to:

- Azure resources with no scope. (optional?)
- Azure resources within the policy scope (minus exclusions and exemptions).

PSRule introduced support for a `scope` property with microsoft/PSRule#1350.

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.