Skip to content

Commit 422c8fb

Browse files
Added more parameters
1 parent a99914c commit 422c8fb

File tree

3 files changed

+47
-10
lines changed

3 files changed

+47
-10
lines changed

infra/main.bicep

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,22 @@ param location string
4242
]
4343
}
4444
})
45-
@description('Optional. Location for all AI service resources. This should be one of the supported Azure AI Service locations.')
46-
param azureAiServiceLocation string
45+
@description('Required. Location for all AI service resources. This should be one of the supported Azure AI Service locations.')
46+
param aiDeploymentsLocation string
47+
48+
@minLength(1)
49+
@description('Optional. Name of the GPT model to deploy:')
50+
param gptModelName string = 'gpt-4o'
51+
52+
@description('Optional. Version of the GPT model to deploy. Defaults to 2024-08-06.')
53+
param gptModelVersion string = '2024-08-06'
54+
55+
@minLength(1)
56+
@description('Optional. GPT model deployment type. Defaults to GlobalStandard.')
57+
param modelDeploymentType string = 'GlobalStandard'
58+
59+
@description('Optional. AI model deployment token capacity. Defaults to 150 for optimal performance.')
60+
param gptModelCapacity int = 150
4761

4862
@description('Optional. The tags to apply to all deployed Azure resources.')
4963
param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = {}
@@ -910,12 +924,11 @@ var aiFoundryAiServicesAiProjectResourceName = 'proj-${solutionSuffix}'
910924
var aiFoundryAIservicesEnabled = true
911925
var aiFoundryAiServicesModelDeployment = {
912926
format: 'OpenAI'
913-
name: 'gpt-4o'
914-
version: '2024-08-06'
927+
name: gptModelName
928+
version: gptModelVersion
915929
sku: {
916-
name: 'GlobalStandard'
917-
//Currently the capacity is set to 140 for optimal performance.
918-
capacity: 140
930+
name: modelDeploymentType
931+
capacity: gptModelCapacity
919932
}
920933
raiPolicyName: 'Microsoft.Default'
921934
}
@@ -925,7 +938,7 @@ module aiFoundryAiServices 'modules/ai-services.bicep' = if (aiFoundryAIservices
925938
name: take('avm.res.cognitive-services.account.${aiFoundryAiServicesResourceName}', 64)
926939
params: {
927940
name: aiFoundryAiServicesResourceName
928-
location: azureAiServiceLocation
941+
location: aiDeploymentsLocation
929942
tags: tags
930943
projectName: aiFoundryAiServicesAiProjectResourceName
931944
projectDescription: 'AI Foundry Project'

infra/main.parameters.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,21 @@
88
"location": {
99
"value": "${AZURE_LOCATION}"
1010
},
11-
"azureAiServiceLocation": {
11+
"aiDeploymentsLocation": {
1212
"value": "${AZURE_ENV_OPENAI_LOCATION}"
1313
},
14+
"modelDeploymentType": {
15+
"value": "${AZURE_ENV_MODEL_DEPLOYMENT_TYPE}"
16+
},
17+
"gptModelName": {
18+
"value": "${AZURE_ENV_MODEL_NAME}"
19+
},
20+
"gptModelVersion": {
21+
"value": "${AZURE_ENV_MODEL_VERSION}"
22+
},
23+
"gptModelCapacity": {
24+
"value": "${AZURE_ENV_MODEL_CAPACITY}"
25+
},
1426
"backendContainerImageTag": {
1527
"value": "${AZURE_ENV_IMAGE_TAG}"
1628
},

infra/main.waf.parameters.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,21 @@
1111
"location": {
1212
"value": "${AZURE_LOCATION}"
1313
},
14-
"azureAiServiceLocation": {
14+
"aiDeploymentsLocation": {
1515
"value": "${AZURE_ENV_OPENAI_LOCATION}"
1616
},
17+
"modelDeploymentType": {
18+
"value": "${AZURE_ENV_MODEL_DEPLOYMENT_TYPE}"
19+
},
20+
"gptModelName": {
21+
"value": "${AZURE_ENV_MODEL_NAME}"
22+
},
23+
"gptModelVersion": {
24+
"value": "${AZURE_ENV_MODEL_VERSION}"
25+
},
26+
"gptModelCapacity": {
27+
"value": "${AZURE_ENV_MODEL_CAPACITY}"
28+
},
1729
"backendContainerImageTag": {
1830
"value": "${AZURE_ENV_IMAGE_TAG}"
1931
},

0 commit comments

Comments
 (0)