Closed jsandquist closed 1 year ago
@jsandquist nice find
so if it is a switch parameter but not true it passes on: -switchParameter false
Will you create a PR?
file: AzGovViz.pipeline.yml
@JulianHayward Sure - that looks like a bit-sized task. :-) All the excessive parameters (false here) fill in values from the start of the argument list so $Product = false and then $AzAPICallVersion = false and so on. Makes sense now.
hi @jsandquist will you PR, or should we close?
First and foremost - Thanks for the great work with AzGovViz!
This is a very minor issue I recently stumbled upon - and with an easy fix (work-around) in the 'variables' file to just leave the variables empty instead of explicitly setting a value equal to the default value (for switch parameters).
AzGovViz version 6.2.0
CodeRunPlatform Azure DevOps - self-hosted agent on Windows. Due to issues with PowerShell => pwsh 7.3.3 I have also set
pwsh: true
for the step at https://github.com/JulianHayward/Azure-MG-Sub-Governance-Reporting/blob/master/.azuredevops/pipelines/AzGovViz.pipeline.yml#L99Describe the bug This is really minor but If I explicitly set any of the following (last) variables to
false
AzGovViz errors out in some surprising ways, e.g.NoPIMEligibility
as follows:If you have previously set it to
true
and then change it tofalse
(instead of no value to pick up the default) you might see some strange errors.Occasionally we also saw this (due to the wiki folder not being present I suppose as the logic then does some extra checks but I might be way off here):
A clear and concise description of what the bug is / Paste the error from the script output (replace your tenantId and subscriptionIds)
Screenshots If applicable, add screenshots to help explain your problem. Screenshot is only an addition paste the error output as text, please.
Additional context I suspect the pipeline logic at https://github.com/JulianHayward/Azure-MG-Sub-Governance-Reporting/blob/master/.azuredevops/pipelines/AzGovViz.pipeline.yml#L45 but I have not tried to pinpoint the issue yet.