Skip to content

Commit

Permalink
Fix issue in Get-AzManagementGroups causing partial discovery to fail (
Browse files Browse the repository at this point in the history
  • Loading branch information
daltondhcp authored May 24, 2022
1 parent fa930c2 commit 7e779ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/functions/Get-AzOpsManagementGroups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
$script:AzOpsPartialRoot += $groupObject
}
if ($groupObject.Children) {
$groupObject.Children | Where-Object Type -eq "/providers/Microsoft.Management/managementGroups" | Foreach-Object -Process {
$groupObject.Children | Where-Object Type -eq "Microsoft.Management/managementGroups" | Foreach-Object -Process {
Get-AzOpsManagementGroups -ManagementGroup $_.Name -PartialDiscovery:$PartialDiscovery
}
}
Expand Down

0 comments on commit 7e779ee

Please sign in to comment.