@@ -42,9 +42,12 @@ param location string = resourceGroup().location
4242 'westus3'
4343])
4444@metadata ({ azd : { type : 'location' } })
45+
46+
4547@description ('Optional. Location for all AI service resources. This location can be different from the resource group location.' )
4648param azureAiServiceLocation string = location
4749
50+
4851@description ('Optional. AI model deployment token capacity. Defaults to 5K tokens per minute.' )
4952param capacity int = 5 // was 5 before = 5K
5053
@@ -180,7 +183,7 @@ module network 'modules/network.bicep' = if (enablePrivateNetworking) {
180183 }
181184}
182185
183- module aiServices 'modules/ai-services /main.bicep' = {
186+ module aiServices 'modules/ai-foundry /main.bicep' = {
184187 name : take ('aiservices-${resourcesName }-deployment' , 64 )
185188 #disable-next-line no-unnecessary-dependson
186189 dependsOn : [logAnalyticsWorkspace , network ] // required due to optional flags that could change dependency
@@ -192,7 +195,6 @@ module aiServices 'modules/ai-services/main.bicep' = {
192195 deployments : [modelDeployment ]
193196 projectName : 'proj-${resourcesName }'
194197 logAnalyticsWorkspaceResourceId : enableMonitoring ? logAnalyticsWorkspace .outputs .resourceId : ''
195- // Enable privateNetworking. See infra/modules/ai-services/main.bicep for addtional configurations.
196198 privateNetworking : enablePrivateNetworking
197199 ? {
198200 virtualNetworkResourceId : network .outputs .vnetResourceId
@@ -398,7 +400,6 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.17.0' = {
398400 }
399401 {
400402 name : 'AZURE_OPENAI_ENDPOINT'
401- //value: 'https://${aiFoundryName}.openai.azure.com/' // old AI Foundry HUB setup
402403 value : 'https://${aiServices .outputs .name }.openai.azure.com/'
403404 }
404405 {
@@ -435,12 +436,10 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.17.0' = {
435436 }
436437 {
437438 name : 'AI_PROJECT_ENDPOINT'
438- //value: aiFoundryProject.properties.endpoints['AI Foundry API'] // old AI Foundry HUB API endpoint
439439 value : aiServices .outputs .project .apiEndpoint // or equivalent
440440 }
441441 {
442442 name : 'AZURE_AI_AGENT_PROJECT_CONNECTION_STRING' // This was not really used in code.
443- //value: azureAifoundry.outputs.projectConnectionString // OLD AI Foundry HUB connection string
444443 value : aiServices .outputs .project .apiEndpoint
445444 }
446445 {
0 commit comments