Azure / enterprise-azure-policy-as-code

Enterprise-ready Azure Policy-as-Code (PaC) solution (includes Az DevOps pipeline)
https://azure.github.io/enterprise-azure-policy-as-code/
MIT License
415 stars 219 forks source link

Scope counts are off based on the root scope type #578

Closed gregslack78 closed 3 months ago

gregslack78 commented 4 months ago

Depending on the type of scope the root scope is, that scope count will be off by one in the scope tree output.

The issue is in lines 130-14- in Build-ScopeTableForDeploymentRootScope it needs to leave the root scope out of the count.

anwather commented 4 months ago

@gregslack78 - any update on this issue?

gregslack78 commented 4 months ago

@anwather - I think this was fixed as a side bug with something else so didn't get auto-closed. I'll take a look today.

gregslack78 commented 4 months ago

Looks like this is still a bug but found another bug while testing so I can't fully test this yet. I'll get a fix in for both today.