diff --git a/eng/common/TestResources/New-TestResources.ps1 b/eng/common/TestResources/New-TestResources.ps1 index f4f3be8de908..d494ed1b9bd7 100644 --- a/eng/common/TestResources/New-TestResources.ps1 +++ b/eng/common/TestResources/New-TestResources.ps1 @@ -53,7 +53,7 @@ param ( [string] $ProvisionerApplicationSecret, [Parameter()] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, 7*24)] [int] $DeleteAfterHours = 120, [Parameter()] diff --git a/eng/common/TestResources/Update-TestResources.ps1 b/eng/common/TestResources/Update-TestResources.ps1 index 7a24c6594ad0..a409596ff4ee 100644 --- a/eng/common/TestResources/Update-TestResources.ps1 +++ b/eng/common/TestResources/Update-TestResources.ps1 @@ -26,7 +26,7 @@ param ( [string] $SubscriptionId, [Parameter()] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, 7*24)] [int] $DeleteAfterHours = 48 )