Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: Module network\virtual-network fails on static tests #3999

Open
ChrisGibson1982 opened this issue Sep 22, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ChrisGibson1982
Copy link

Describe the bug

Running the "Network - Virtual-Networks" pipeline fails on the Static validation stage, specifically on the Pester test task.

Error message:

RuntimeException: Failed to process file [/home/vsts/work/1/s/modules/network/virtual-network/.test/common/main.test.bicep]. Please check if it properly formatted. Original error message: [Conversion from JSON failed with error: Unexpected character encountered while parsing value: a. Path 'addressPrefixes', line 5, position 6.]

Stack Trace:
at ConvertTo-FormattedJSONParameterObject, /home/vsts/work/1/s/utilities/tools/Set-ModuleReadMe.ps1:759
at Set-DeploymentExamplesSection, /home/vsts/work/1/s/utilities/tools/Set-ModuleReadMe.ps1:1033
at Set-ModuleReadMe, /home/vsts/work/1/s/utilities/tools/Set-ModuleReadMe.ps1:1656
at , /home/vsts/work/1/s/utilities/pipelines/staticValidation/module.tests.ps1:668

To reproduce

Run the Virtual-Networks pipeline

Code snippet

No response

Relevant log output

##[error]    [-] [network/virtual-network] Set-ModuleReadMe script should not apply any updates. 9.34s (9.34s|1ms)
##[error]     RuntimeException: Failed to process file [/home/vsts/work/1/s/modules/network/virtual-network/.test/common/main.test.bicep]. Please check if it properly formatted. Original error message: [Conversion from JSON failed with error: Unexpected character encountered while parsing value: a. Path 'addressPrefixes', line 5, position 6.]
##[error]     at ConvertTo-FormattedJSONParameterObject, /home/vsts/work/1/s/utilities/tools/Set-ModuleReadMe.ps1:759
##[error]     at Set-DeploymentExamplesSection, /home/vsts/work/1/s/utilities/tools/Set-ModuleReadMe.ps1:1033
##[error]     at Set-ModuleReadMe, /home/vsts/work/1/s/utilities/tools/Set-ModuleReadMe.ps1:1656
##[error]     at <ScriptBlock>, /home/vsts/work/1/s/utilities/pipelines/staticValidation/module.tests.ps1:668
@ChrisGibson1982 ChrisGibson1982 added the bug Something isn't working label Sep 22, 2023
@github-project-automation github-project-automation bot moved this to Needs triage in Bug board Sep 22, 2023
@AlexanderSehr AlexanderSehr added this to the Azure Verfified Modules (AVM) - V3 milestone May 19, 2024
@AlexanderSehr AlexanderSehr removed this from the Azure Verfified Modules (AVM) - CI Issues milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants