Skip to content

Commit 56e6036

Browse files
committed
Ai Foudry code updated and tested
1 parent 1e6eb33 commit 56e6036

7 files changed

Lines changed: 670 additions & 19 deletions

File tree

docs/CmsaArchitectureSource.pptx

349 KB
Binary file not shown.

infra/main.bicep

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.')
4648
param azureAiServiceLocation string = location
4749

50+
4851
@description('Optional. AI model deployment token capacity. Defaults to 5K tokens per minute.')
4952
param 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
{

infra/main.bicepparam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using './main.bicep'
22

33
param solutionName = readEnvironmentVariable('AZURE_ENV_NAME')
44
param location = readEnvironmentVariable('AZURE_LOCATION')
5+
//param azureAiServiceLocation = readEnvironmentVariable('AZURE_AI_SERVICE_LOCATION')
56

67
// //*******************************************************************************
78
// // Uncomment the following lines to enable the WAF-aligned configuration

infra/main.waf-aligned.bicepparam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using './main.bicep'
22

33
param solutionName = readEnvironmentVariable('AZURE_ENV_NAME')
44
param location = readEnvironmentVariable('AZURE_LOCATION')
5+
//param azureAiServiceLocation = readEnvironmentVariable('AZURE_AI_SERVICE_LOCATION')
56

67
// //*******************************************************************************
78
// // WAF-aligned configuration

0 commit comments

Comments
 (0)