Skip to content

Commit 9eaa714

Browse files
author
Seth
committed
Quota check - typo, comment clean up
1 parent 672c617 commit 9eaa714

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

scripts/validate_model_deployment_quotas.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,17 @@ if (-not $aiModelDeployments -or -not ($aiModelDeployments -is [System.Collectio
3939
exit 1
4040
}
4141

42-
# Set the Azure subscription
4342
az account set --subscription $SubscriptionId
4443
Write-Host "🎯 Active Subscription: $(az account show --query '[name, id]' --output tsv)"
4544

4645
$QuotaAvailable = $true
4746

48-
# Iterate over each deployment in the aiModelDeployments array
4947
foreach ($deployment in $aiModelDeployments) {
5048
$name = $deployment.name
5149
$model = $deployment.model.name
5250
$type = $deployment.sku.name
5351
$capacity = $deployment.sku.capacity
5452

55-
# Call the validate_model_quota.ps1 script
5653
Write-Host "🔍 Validating model deployment: $name ..."
5754
& .\scripts\validate_model_quota.ps1 -Location $Location -Model $model -Capacity $capacity -DeploymentType $type
5855

scripts/validate_model_deployment_quotas.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ while IFS= read -r deployment; do
6464
type=$(echo "$deployment" | jq -r '.sku.name')
6565
capacity=$(echo "$deployment" | jq -r '.sku.capacity')
6666

67-
# Call the validate_model_deployable.sh script
6867
echo "🔍 Validating model deployment: $name ..."
6968
./scripts/validate_model_quota.sh --location "$LOCATION" --model "$model" --capacity $capacity --deployment-type $type
7069

scripts/validate_model_quota.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $ModelType = "OpenAI.$DeploymentType.$Model"
3939

4040
Write-Host "🔍 Checking quota for $ModelType in $Location ..."
4141

42-
# Get quota information using Azure CLI
42+
# Get model quota information
4343
$ModelInfo = az cognitiveservices usage list --location $Location --query "[?name.value=='$ModelType']" --output json | ConvertFrom-Json
4444

4545
if (-not $ModelInfo) {

0 commit comments

Comments
 (0)