diff --git a/Docs/policy-assignments.md b/Docs/policy-assignments.md index 33e382b1..01ff8843 100644 --- a/Docs/policy-assignments.md +++ b/Docs/policy-assignments.md @@ -168,9 +168,9 @@ This example generates two assignments at the "prod" leaf per scope: ## Assignment scopes and excluded scopes -`scope` is required exactly once in each tree branch. Excluded scopes (`notScope`) are cumulative from `global-settings.json` and the entire tree branch; however, once a scope is defined `notScope` may not be defined at any child node. +`scope` is required exactly once in each tree branch. Excluded scopes (`notScope`) are cumulative from `global-settings.json` and the entire tree branch; however, once a scope is defined `notScopes` may not be defined at any child node. -Both `scope` and `notScope` are specific to an [EPAC Environment using the pacSelector name](start-implementing.md#epac-concepts-and-environments), e.g., `epac-dev` and `tenant`. +Both `scope` and `notScopes` are specific to an [EPAC Environment using the pacSelector name](start-implementing.md#epac-concepts-and-environments), e.g., `epac-dev` and `tenant`. ```json "scope": { @@ -184,7 +184,7 @@ Both `scope` and `notScope` are specific to an [EPAC Environment using the pacSe } ``` -`notScope` works the same. In addition `"*"` means all EPAC Environments. +`notScopes` works the same. In addition `"*"` means all EPAC Environments. ```json "notScopes": { diff --git a/Scripts/Helpers/Export-AssignmentNode.ps1 b/Scripts/Helpers/Export-AssignmentNode.ps1 index 5c20150c..667820b3 100644 --- a/Scripts/Helpers/Export-AssignmentNode.ps1 +++ b/Scripts/Helpers/Export-AssignmentNode.ps1 @@ -109,7 +109,7 @@ function Export-AssignmentNode { } } if ($notScopesValue.Count -gt 0) { - $null = $AssignmentNode.Add("notScope", $notScopesValue) + $null = $AssignmentNode.Add("notScopes", $notScopesValue) } break }