From 084304fbdce0dd66be1aa41ae34226a66d721e04 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Mon, 17 Nov 2025 10:02:14 +0000 Subject: [PATCH] fix: context issue --- src/ALZ/Public/Remove-PlatformLandingZone.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ALZ/Public/Remove-PlatformLandingZone.ps1 b/src/ALZ/Public/Remove-PlatformLandingZone.ps1 index 26ee1a2..025b66c 100644 --- a/src/ALZ/Public/Remove-PlatformLandingZone.ps1 +++ b/src/ALZ/Public/Remove-PlatformLandingZone.ps1 @@ -1023,6 +1023,8 @@ function Remove-PlatformLandingZone { $funcRemoveDeploymentsForScope = $using:funcRemoveDeploymentsForScope ${function:Remove-DeploymentsForScope} = $funcRemoveDeploymentsForScope $TempLogFileForPlan = $using:TempLogFileForPlan + $throttleLimit = $using:ThrottleLimit + $planMode = $using:PlanMode $subscription = $_ Write-ToConsoleLog "Finding resource groups for subscription: $($subscription.Name) (ID: $($subscription.Id))" -NoNewline @@ -1060,9 +1062,6 @@ function Remove-PlatformLandingZone { $shouldRetry = $true - $throttleLimit = $using:ThrottleLimit - $planMode = $using:PlanMode - while($shouldRetry) { $shouldRetry = $false $resourceGroupsToRetry = [System.Collections.Concurrent.ConcurrentBag[hashtable]]::new()