We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f58c23 commit d50cc7bCopy full SHA for d50cc7b
infra/scripts/validate_model_deployment_quotas.ps1
@@ -54,7 +54,13 @@ foreach ($deployment in $aiModelDeployments) {
54
& .\infra\scripts\validate_model_quota.ps1 -Location $Location -Model $model -Capacity $capacity -DeploymentType $type
55
56
# Check if the script failed
57
- if ($LASTEXITCODE -ne 0) {
+ $exitCode = $LASTEXITCODE
58
+
59
+ if ($exitCode -ne 0) {
60
+ if ($exitCode -eq 2) {
61
+ # Quota error already printed inside the script, exit gracefully without reprinting
62
+ exit 1
63
+ }
64
Write-Error "❌ ERROR: Quota validation failed for model deployment: $name"
65
$QuotaAvailable = $false
66
}
0 commit comments