Replies: 1 comment
-
Moved to Issues |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have successfully completed hydration but am unable to progress past the next step:
Build-DeploymentPlans -PacEnvironmentSelector epac-dev -OutputFolder ./Output -DefinitionsRootFolder ./Definitions
I'm encountering when running the script locally in the context of my Azure user account, which has contributor access to the management groups. I get the same error when running the epac-dev-pipeline.yml pipeline in Azure DevOps, using a service connection with contributor access to the management groups.
This error looks more like it's not correctly building arrays or hash tables of policy assignments rather than an Azure permissions issue. It would be helpful if it could identify which child node has the notScope definition. The globalNotScopes value is empty in global-settings.jsonc.
The script halts at this point:
========================================================================================Processing Policy Assignments JSON files in folder './Definitions/policyAssignments'
========================================================================================Number of Policy Assignment files = 49
Write-Error: C:\Users\user\PowerShell\Modules\EnterprisePolicyAsCode\10.9.2\internal\functions\Build-AssignmentDefinitionNode.ps1:483:54
Line |
483 | … ErrorsLocal, $assignmentsListLocal = Build-AssignmentDefinitionNode
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Node //root/child-0: detected notScope definition in in a child node when the scope was already defined Write-Error: C:\Users\user\PowerShell\Modules\EnterprisePolicyAsCode\10.9.2\internal\functions\Build-AssignmentDefinitionNode.ps1:483:54 Line | 483 | … ErrorsLocal, $assignmentsListLocal = Build-AssignmentDefinitionNode
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Node //root/child-1: each assignment field must define an assignment name and displayName.
Write-Error: C:\Users\user\PowerShell\Modules\EnterprisePolicyAsCode\10.9.2\functions\Build-DeploymentPlans.ps1:324:9
Line |
324 | Build-AssignmentPlan `
| ~~~~~~~~~~~~~~~~~~~~~~
| Assignment definitions content errors
Beta Was this translation helpful? Give feedback.
All reactions