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
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)'
The text was updated successfully, but these errors were encountered:
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
While executing
Build-AzPoliciesInitiativesAssignmentsPlan.ps1
, I find that thescopeTreeInfo
object contains atype
property prepended with/providers/
, while theGet-NotScope
helper function expects a string that evaluates with exactlyMicrosoft.Management/managementGroups
.This causes the
![image](https://user-images.githubusercontent.com/10948023/200692530-b902bcf0-d21d-464a-bee2-623a9834b678.png)
Build-AzPoliciesInitiativesAssignmentsPlan.ps1
to fail with the error outputTraversal of scopeTree to find notScopes in scope '$scope' yielded an unknown type '$($child.type)' name='$($child.name)'
The text was updated successfully, but these errors were encountered: