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

Management Group scopeTreeInfo type property mistmatch on Assignment notScope evaluation #87

Closed
jacerm opened this issue Nov 8, 2022 · 0 comments · Fixed by #88
Closed

Comments

@jacerm
Copy link

jacerm commented Nov 8, 2022

While executing Build-AzPoliciesInitiativesAssignmentsPlan.ps1, I find that the scopeTreeInfo object contains a type property prepended with /providers/, while the Get-NotScope helper function expects a string that evaluates with exactly Microsoft.Management/managementGroups.

This causes the Build-AzPoliciesInitiativesAssignmentsPlan.ps1 to fail with the error output Traversal of scopeTree to find notScopes in scope '$scope' yielded an unknown type '$($child.type)' name='$($child.name)'
image

@jacerm jacerm changed the title Management Group scopeTreeInfo type property on Assignment notScope evaluation Management Group scopeTreeInfo type property mistmatch on Assignment notScope evaluation Nov 8, 2022
@techlake techlake linked a pull request Nov 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant