Skip to content

Commit b35a3e9

Browse files
Fix shell script to correctly parse tab-separated subscription output and update documentation for login command
1 parent 73e39f3 commit b35a3e9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

content-gen/docs/QuotaCheck.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Before deploying the Content Generation Solution Accelerator, **ensure sufficien
88
99

1010
### Login if you have not done so already
11-
```
12-
azd auth login
11+
```sh
12+
az login
1313
```
1414

1515

1616
### 📌 Default Models & Capacities:
1717
```
18-
gpt-5.1:150, gpt-image-1:1
18+
gpt-5.1:150,gpt-image-1:1
1919
```
2020
**Note:** GPT-5.1 capacity is in tokens, GPT-Image-1 capacity is in RPM (Requests Per Minute).
2121
### 📌 Default Regions:

content-gen/infra/script/quota_check_params.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if [ "$SUB_COUNT" -eq 0 ]; then
5252
exit 1
5353
elif [ "$SUB_COUNT" -eq 1 ]; then
5454
# If only one subscription, automatically select it
55-
AZURE_SUBSCRIPTION_ID=$(echo "$SUBSCRIPTIONS" | awk '{print $2}')
55+
AZURE_SUBSCRIPTION_ID=$(echo "$SUBSCRIPTIONS" | awk -F '\t' '{print $2}')
5656
if [ -z "$AZURE_SUBSCRIPTION_ID" ]; then
5757
echo "❌ ERROR: No active Azure subscriptions found. Please log in using 'az login' and ensure you have an active subscription."
5858
exit 1
@@ -61,15 +61,15 @@ elif [ "$SUB_COUNT" -eq 1 ]; then
6161
else
6262
# If multiple subscriptions exist, prompt the user to choose one
6363
echo "Multiple subscriptions found:"
64-
echo "$SUBSCRIPTIONS" | awk '{print NR")", $1, "-", $2}'
64+
echo "$SUBSCRIPTIONS" | awk -F '\t' '{print NR")", $1, "-", $2}'
6565

6666
while true; do
6767
echo "Enter the number of the subscription to use:"
6868
read SUB_INDEX
6969

7070
# Validate user input
7171
if [[ "$SUB_INDEX" =~ ^[0-9]+$ ]] && [ "$SUB_INDEX" -ge 1 ] && [ "$SUB_INDEX" -le "$SUB_COUNT" ]; then
72-
AZURE_SUBSCRIPTION_ID=$(echo "$SUBSCRIPTIONS" | awk -v idx="$SUB_INDEX" 'NR==idx {print $2}')
72+
AZURE_SUBSCRIPTION_ID=$(echo "$SUBSCRIPTIONS" | awk -F '\t' -v idx="$SUB_INDEX" 'NR==idx {print $2}')
7373
echo "✅ Selected Subscription: $AZURE_SUBSCRIPTION_ID"
7474
break
7575
else

0 commit comments

Comments
 (0)