You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align collect-governance-baseline.ps1 with discover.py policy evaluation #763
Raised in review of #762. discover.py now evaluates the conditional effect expression [if(contains(parameters('resourceTypeList'),'type'),parameters('effect'),'Disabled')] and ignores enforceSetting,
which the ALZ Corp baseline needs to reach COMPLETE. collect-governance-baseline.ps1 does not.
Gaps in the PowerShell collector
It does not evaluate the conditional effect expression, yet can still report COMPLETE.
It does not resolve initiative member parameters or assignment parameter overrides the way discover.py does.
It silently skips effects it cannot classify and never reports PARTIAL.
Porting only the conditional would leave the other gaps and imply parity that does not exist. The shipped baseline is
generated by the Python path, so the collector is not on that path.
Proposed work
Align the collector with discover.py (parameter resolution, conditional effects, PARTIAL reporting), or have it call the
Python discovery, and add a shared fixture test so the two stay in step.
Activity