From 0135fc94ab68eadf8f799106ada3b4d9e67fd891 Mon Sep 17 00:00:00 2001 From: Anthony Watherston Date: Thu, 10 Oct 2024 13:57:21 +1100 Subject: [PATCH] Updated to export and docs --- Docs/policy-assignments.md | 6 +++--- Scripts/Helpers/Export-AssignmentNode.ps1 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }