Skip to content

Commit 02c280c

Browse files
committed
Env var tweaks
1 parent 7c385c8 commit 02c280c

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

infra/main.parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
"embeddingDimensions": {
117117
"value": "${AZURE_OPENAI_EMB_DIMENSIONS}"
118118
},
119+
"gpt4vDeploymentCapacity":{
120+
"value": "${AZURE_OPENAI_GPT4V_DEPLOYMENT_CAPACITY=10}"
121+
},
119122
"openAiHost": {
120123
"value": "${OPENAI_HOST=azure}"
121124
},

scripts/auth_init.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Write-Host "Checking if authentication should be setup..."
22

33
$AZURE_USE_AUTHENTICATION = (azd env get-value AZURE_USE_AUTHENTICATION)
4-
if (-not $?) {
4+
if ($AZURE_USE_AUTHENTICATION -ne "true") {
55
Write-Host "AZURE_USE_AUTHENTICATION is not set, skipping authentication setup."
66
Exit 0
77
}

scripts/auth_init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "Checking if authentication should be setup..."
44

55
AZURE_USE_AUTHENTICATION=$(azd env get-value AZURE_USE_AUTHENTICATION)
6-
if [ $? -ne 0 ]; then
6+
if [ "$AZURE_USE_AUTHENTICATION" != "true" ]; then
77
echo "AZURE_USE_AUTHENTICATION is not set, skipping authentication setup."
88
exit 0
99
fi

scripts/prepdocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo 'Running "prepdocs.py"'
77
AZURE_USE_AUTHENTICATION=$(azd env get-value AZURE_PUBLIC_NETWORK_ACCESS)
88
AZURE_PUBLIC_NETWORK_ACCESS=$(azd env get-value AZURE_PUBLIC_NETWORK_ACCESS)
99

10-
if [ -n $AZURE_USE_AUTHENTICATION ] && [ $AZURE_PUBLIC_NETWORK_ACCESS = "Disabled" ]; then
10+
if [ -n "$AZURE_USE_AUTHENTICATION" ] && [ "$AZURE_PUBLIC_NETWORK_ACCESS" = "Disabled" ]; then
1111
echo "AZURE_PUBLIC_NETWORK_ACCESS is set to Disabled. Exiting."
1212
exit 0
1313
fi

0 commit comments

Comments
 (0)