Skip to content

Commit 0b89099

Browse files
Merge branch 'main' into dev
2 parents 61e12a7 + 538856f commit 0b89099

File tree

7 files changed

+10
-12
lines changed

7 files changed

+10
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
az deployment group create \
139139
--name ${{ env.SOLUTION_PREFIX }}-deployment \
140140
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
141-
--template-file infra/main.json \
141+
--template-file infra/main.bicep \
142142
--parameters \
143143
environmentName="${{ env.SOLUTION_PREFIX }}" \
144144
secondaryLocation="northcentralus" \

infra/deploy_ai_foundry.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var aiModelDeployments = [
7171
name: embeddingModel
7272
model: embeddingModel
7373
sku: {
74-
name: 'Standard'
74+
name: 'GlobalStandard'
7575
capacity: embeddingDeploymentCapacity
7676
}
7777
version: '2'

infra/deploy_app_service.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ resource searchIndexDataReaderAssignment 'Microsoft.Authorization/roleAssignment
354354
properties: {
355355
roleDefinitionId: searchIndexDataReader.id
356356
principalId: Website.identity.principalId
357+
principalType: 'ServicePrincipal'
357358
}
358359
}
359360

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ param AZURE_LOCATION string = ''
4040
type: 'location'
4141
usageName: [
4242
'OpenAI.GlobalStandard.gpt4.1,150'
43-
'OpenAI.Standard.text-embedding-ada-002,80'
43+
'OpenAI.GlobalStandard.text-embedding-ada-002,80'
4444
]
4545
}
4646
})

infra/main.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"type": "location",
6060
"usageName": [
6161
"OpenAI.GlobalStandard.gpt4.1,150",
62-
"OpenAI.Standard.text-embedding-ada-002,80"
62+
"OpenAI.GlobalStandard.text-embedding-ada-002,80"
6363
]
6464
},
6565
"description": "Location for AI deployments. This should be a valid Azure region where OpenAI services are available."
@@ -976,7 +976,7 @@
976976
"name": "[parameters('embeddingModel')]",
977977
"model": "[parameters('embeddingModel')]",
978978
"sku": {
979-
"name": "Standard",
979+
"name": "GlobalStandard",
980980
"capacity": "[parameters('embeddingDeploymentCapacity')]"
981981
},
982982
"version": "2",
@@ -2361,7 +2361,8 @@
23612361
"name": "[guid(parameters('WebsiteName'), parameters('aiSearchName'), resourceId('Microsoft.Authorization/roleDefinitions', '1407120a-92aa-4202-b7e9-c0e197c71c8f'))]",
23622362
"properties": {
23632363
"roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '1407120a-92aa-4202-b7e9-c0e197c71c8f')]",
2364-
"principalId": "[reference(resourceId('Microsoft.Web/sites', parameters('WebsiteName')), '2020-06-01', 'full').identity.principalId]"
2364+
"principalId": "[reference(resourceId('Microsoft.Web/sites', parameters('WebsiteName')), '2020-06-01', 'full').identity.principalId]",
2365+
"principalType": "ServicePrincipal"
23652366
},
23662367
"dependsOn": [
23672368
"[resourceId('Microsoft.Web/sites', parameters('WebsiteName'))]"

scripts/checkquota.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ declare -A MIN_CAPACITY=(
3535

3636
["OpenAI.GlobalStandard.gpt4.1"]=$GPT_MIN_CAPACITY
3737

38-
["OpenAI.Standard.text-embedding-ada-002"]=$TEXT_EMBEDDING_MIN_CAPACITY
38+
["OpenAI.GlobalStandard.text-embedding-ada-002"]=$TEXT_EMBEDDING_MIN_CAPACITY
3939
)
4040

4141
VALID_REGION=""

scripts/quota_check_params.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,7 @@ for REGION in "${REGIONS[@]}"; do
165165
FOUND=false
166166
INSUFFICIENT_QUOTA=false
167167

168-
if [ "$MODEL_NAME" = "text-embedding-ada-002" ]; then
169-
MODEL_TYPES=("openai.standard.$MODEL_NAME")
170-
else
171-
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
172-
fi
168+
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
173169

174170
for MODEL_TYPE in "${MODEL_TYPES[@]}"; do
175171
FOUND=false

0 commit comments

Comments
 (0)