@@ -20,11 +20,11 @@ param azureExistingAIProjectResourceId string = ''
2020 type : 'location'
2121 }
2222})
23- param contentUnderstandingLocation string
23+ param contentUnderstandingLocation string = 'swedencentral'
2424
2525@minLength (1 )
2626@description ('Secondary location for databases creation(example:eastus2):' )
27- param secondaryLocation string
27+ param secondaryLocation string = 'eastus2'
2828
2929@minLength (1 )
3030@description ('GPT model deployment type:' )
@@ -72,6 +72,20 @@ param useLocalBuild string = 'false'
7272var useLocalBuildLower = toLower (useLocalBuild )
7373
7474var uniqueId = toLower (uniqueString (subscription ().id , environmentName , solutionLocation ))
75+
76+
77+ @metadata ({
78+ azd :{
79+ type : 'location'
80+ usageName : [
81+ 'OpenAI.GlobalStandard.gpt-4o-mini,30'
82+ 'OpenAI.Standard.text-embedding-ada-002,80'
83+ ]
84+ }
85+ })
86+ @description ('Location for AI Foundry deployment. This is the location where the AI Foundry resources will be deployed.' )
87+ param AZURE_AI_SERVICE_LOCATION string
88+
7589var solutionPrefix = 'km${padLeft (take (uniqueId , 12 ), 12 , '0' )}'
7690
7791var containerRegistryName = '${abbrs .containers .containerRegistry }${solutionPrefix }'
@@ -107,7 +121,7 @@ module aifoundry 'deploy_ai_foundry.bicep' = {
107121 name : 'deploy_ai_foundry'
108122 params : {
109123 solutionName : solutionPrefix
110- solutionLocation : solutionLocation
124+ solutionLocation : AZURE_AI_SERVICE_LOCATION
111125 keyVaultName : kvault .outputs .keyvaultName
112126 cuLocation : contentUnderstandingLocation
113127 deploymentType : deploymentType
0 commit comments