Azure / Azure-Proactive-Resiliency-Library-v2

Azure Proactive Resiliency Library v2 (APRL) - Source for Azure WAF reliability guidance and associated ARG queries
https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/
MIT License
39 stars 59 forks source link

🪲 Bug Report - Errors running 2_wara_data_analyzer.ps1 #224

Open ecalalang opened 2 weeks ago

ecalalang commented 2 weeks ago

Describe the bug

2_wara_data_analyzer.ps1

Line 124 - Depth 15 is not a parameter for ConvertFrom-Jason --- $results = Get-Content -Path $JSONFile | ConvertFrom-Json -Depth 15

Line 173 ---- $YAML is missing .Fullname -- $Script:ServicesYAMLContent += Get-Content -Path $YAML | ConvertFrom-Yaml This should be -- $Script:ServicesYAMLContent += Get-Content -Path $YAML.FullName | ConvertFrom-Yaml Line181 --- Same issue as Line 173

To Reproduce

Steps to reproduce the behaviour:

  1. Fill
  2. Me
  3. In

Expected behaviour

A clear and concise description of what you expected to happen without this bug 🙂

Screenshots 📷

image

image

If applicable, add screenshots to help explain your problem. Please feel free to blur/cover any sensitive information.

Additional context

Anything else we should know to help us troubleshoot this bug?

kpoineal commented 2 weeks ago

@ecalalang Can you confirm what version of Powershell you're running this on for me? The script requires Pwsh7 to run correctly. Thank you!

ecalalang commented 2 weeks ago

Yup, found out what was wrong since I was using my HW refresh machine!!!

All good, I was still able to make it work with the old Powershell Version !!!