Skip to content

Commit 7a0b86b

Browse files
Fixes for the command shared by Alvaro
1 parent 422c8fb commit 7a0b86b

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
lines changed

.github/workflows/deploy-waf.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ jobs:
109109
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
110110
--template-file infra/main.bicep \
111111
--parameters \
112-
environmentName=${{ env.SOLUTION_PREFIX }} \
113-
useWafAlignedArchitecture=true \
114-
aiDeploymentsLocation='${{ env.AZURE_LOCATION }}' \
112+
solutionName=${{ env.SOLUTION_PREFIX }} \
113+
location="${{ env.AZURE_LOCATION }}" \
114+
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
115115
gptModelCapacity=5 \
116-
virtualMachineConfiguration='{"adminUsername": "adminuser", "adminPassword": "P@ssw0rd1234"}' \
117-
logAnalyticsWorkspaceConfiguration='{"existingWorkspaceResourceId": ""}'
118-
116+
enableTelemetry=true \
117+
enableMonitoring=true \
118+
enablePrivateNetworking=true \
119+
enableScalability=true \
120+
119121
120122
- name: Send Notification on Failure
121123
if: failure()

.github/workflows/deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,14 @@ jobs:
129129
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
130130
--template-file infra/main.bicep \
131131
--parameters \
132-
environmentName=${{ env.SOLUTION_PREFIX }} \
133-
solutionLocation="${{ env.AZURE_LOCATION }}" \
134-
modelDeploymentType="GlobalStandard" \
132+
solutionName=${{ env.SOLUTION_PREFIX }} \
133+
location="${{ env.AZURE_LOCATION }}" \
134+
gptModelDeploymentType="GlobalStandard" \
135135
gptModelName="gpt-4o" \
136136
gptModelVersion="2024-08-06" \
137137
imageTag="${IMAGE_TAG}" \
138-
useWafAlignedArchitecture=false \
139-
aiDeploymentsLocation='${{ env.AZURE_LOCATION }}' \
138+
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
140139
gptModelCapacity=150 \
141-
logAnalyticsWorkspaceConfiguration='{"dataRetentionInDays": 30, "existingWorkspaceResourceId": ""}' \
142-
applicationInsightsConfiguration='{"retentionInDays": 30}' \
143-
virtualNetworkConfiguration='{"enabled": false}' \
144-
webServerFarmConfiguration='{"skuCapacity": 1, "skuName": "B2"}' \
145140
--output json
146141
147142
- name: Extract Web App and API App URLs

infra/main.bicep

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ param location string
4343
}
4444
})
4545
@description('Required. Location for all AI service resources. This should be one of the supported Azure AI Service locations.')
46-
param aiDeploymentsLocation string
46+
param azureAiServiceLocation string
4747

4848
@minLength(1)
4949
@description('Optional. Name of the GPT model to deploy:')
@@ -53,8 +53,12 @@ param gptModelName string = 'gpt-4o'
5353
param gptModelVersion string = '2024-08-06'
5454

5555
@minLength(1)
56+
@allowed([
57+
'Standard'
58+
'GlobalStandard'
59+
])
5660
@description('Optional. GPT model deployment type. Defaults to GlobalStandard.')
57-
param modelDeploymentType string = 'GlobalStandard'
61+
param gptModelDeploymentType string = 'GlobalStandard'
5862

5963
@description('Optional. AI model deployment token capacity. Defaults to 150 for optimal performance.')
6064
param gptModelCapacity int = 150
@@ -927,7 +931,7 @@ var aiFoundryAiServicesModelDeployment = {
927931
name: gptModelName
928932
version: gptModelVersion
929933
sku: {
930-
name: modelDeploymentType
934+
name: gptModelDeploymentType
931935
capacity: gptModelCapacity
932936
}
933937
raiPolicyName: 'Microsoft.Default'
@@ -938,7 +942,7 @@ module aiFoundryAiServices 'modules/ai-services.bicep' = if (aiFoundryAIservices
938942
name: take('avm.res.cognitive-services.account.${aiFoundryAiServicesResourceName}', 64)
939943
params: {
940944
name: aiFoundryAiServicesResourceName
941-
location: aiDeploymentsLocation
945+
location: azureAiServiceLocation
942946
tags: tags
943947
projectName: aiFoundryAiServicesAiProjectResourceName
944948
projectDescription: 'AI Foundry Project'
@@ -1169,7 +1173,7 @@ module containerAppEnvironment 'br/public:avm/res/app/managed-environment:0.11.2
11691173
destination: 'log-analytics'
11701174
logAnalyticsConfiguration: {
11711175
customerId: logAnalyticsWorkspace!.outputs.logAnalyticsWorkspaceId
1172-
sharedKey: logAnalyticsWorkspace!.outputs.primarySharedKey
1176+
sharedKey: logAnalyticsWorkspace.outputs.primarySharedKey
11731177
}
11741178
}
11751179
: null

infra/main.parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"location": {
99
"value": "${AZURE_LOCATION}"
1010
},
11-
"aiDeploymentsLocation": {
11+
"azureAiServiceLocation": {
1212
"value": "${AZURE_ENV_OPENAI_LOCATION}"
1313
},
14-
"modelDeploymentType": {
14+
"gptModelDeploymentType": {
1515
"value": "${AZURE_ENV_MODEL_DEPLOYMENT_TYPE}"
1616
},
1717
"gptModelName": {

infra/main.waf.parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"location": {
1212
"value": "${AZURE_LOCATION}"
1313
},
14-
"aiDeploymentsLocation": {
14+
"azureAiServiceLocation": {
1515
"value": "${AZURE_ENV_OPENAI_LOCATION}"
1616
},
17-
"modelDeploymentType": {
17+
"gptModelDeploymentType": {
1818
"value": "${AZURE_ENV_MODEL_DEPLOYMENT_TYPE}"
1919
},
2020
"gptModelName": {

0 commit comments

Comments
 (0)