Troubleshooting the global-settings.jsonc #713
Replies: 1 comment
-
When I run this manually, it works like a charm. |
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
-
Hi,
We are in the process of implementing EPAC to a hub and spoke environment with a management groups hierarchy, which has it is own policies handling setup.
We will setup EPAC with desiredstate to ownedOnly in the first face of this implementation.
We will use two PacEnvironments (EPAC-Dev and Prod) and are using Azure DevOps.
We have use the New-PipelinesFromStarterKit command with -BranchingFlow GitHub -ScriptType module, to create pipelines for ADO.
Everything is setup in both our production tenant and our test tenant (including test ADO).
Now I am trying to run the pipeline epac-dev-pipeline.yml and it is breaking under Plan epac-dev in the Plan process after that PowerShell has been started.
The blow error says that global-settings.jsonc is not valid?
Read global settings from './Definitions/global-settings.jsonc'.
PowerShell Versions: 7.4.3
Write-Error: /home/vsts/.local/share/powershell/Modules/EnterprisePolicyAsCode/10.5.0/internal/functions/Select-PacEnvironment.ps1:12
Line |
12 | … lSettings = Get-GlobalSettings -DefinitionsRootFolder $DefinitionsRoo …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Assignment JSON file './Definitions/global-settings.jsonc' is not valid.
##[error]PowerShell exited with code '1'.
I cannot see what format or input is invalid?
Is it possible to get or find more deitals about the error and hopefully with more specific what is invalid in the file?
Beta Was this translation helpful? Give feedback.
All reactions