Skip to content

Commit

Permalink
aligning pseudoRootManagementGroup parameter name with variable name …
Browse files Browse the repository at this point in the history
…to avoid confusion
  • Loading branch information
Brunoga-MS committed Jan 19, 2024
1 parent 9f30af3 commit 8831483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions patterns/alz/scripts/Start-AMBACleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ param(
# the pseudo managemnt group to start from
[Parameter(Mandatory=$True,
ValueFromPipeline=$false)]
[string]$pseudoManagementGroup,
[string]$pseudoRootManagementGroup,
# output a list of the resources to be deleted
[Parameter(Mandatory=$False,
ValueFromPipeline=$false)]
Expand Down Expand Up @@ -113,7 +113,7 @@ If (-NOT(Get-Module -ListAvailable Az.ResourceGraph)) {

# get all management groups -- used in graph query scope
$managementGroups = @()
$allMgs = Get-AzManagementGroup -GroupName $pseudoManagementGroup -Expand -Recurse
$allMgs = Get-AzManagementGroup -GroupName $pseudoRootManagementGroup -Expand -Recurse
foreach ($mg in $allMgs) {
Iterate-ManagementGroups $mg
}
Expand Down
4 changes: 2 additions & 2 deletions patterns/alz/scripts/Start-AMBAOldArpCleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ param(
# the pseudo managemnt group to start from
[Parameter(Mandatory=$True,
ValueFromPipeline=$false)]
[string]$pseudoManagementGroup,
[string]$pseudoRootManagementGroup,
# output a list of the resources to be deleted
[Parameter(Mandatory=$False,
ValueFromPipeline=$false)]
Expand Down Expand Up @@ -114,7 +114,7 @@ If (-NOT(Get-Module -ListAvailable Az.ResourceGraph)) {

# get all management groups -- used in graph query scope
$managementGroups = @()
$allMgs = Get-AzManagementGroup -GroupName $pseudoManagementGroup -Expand -Recurse
$allMgs = Get-AzManagementGroup -GroupName $pseudoRootManagementGroup -Expand -Recurse
foreach ($mg in $allMgs) {
Iterate-ManagementGroups $mg
}
Expand Down

0 comments on commit 8831483

Please sign in to comment.