Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ var aiFoundryAiServicesModelDeployment = {
version: '2024-08-06'
sku: {
name: 'GlobalStandard'
//Curently the capacity is set to 140 for opinanal performance.
capacity: aiFoundryAiServicesConfiguration.?modelCapcity ?? 140
//Currently the capacity is set to 140 for optimal performance.
capacity: aiFoundryAiServicesConfiguration.?modelCapacity ?? 140
}
raiPolicyName: 'Microsoft.Default'
}
Expand Down Expand Up @@ -833,10 +833,7 @@ var aiFoundryStorageAccountResourceName = aiFoundryStorageAccountConfiguration.?

module aiFoundryStorageAccount 'br/public:avm/res/storage/storage-account:0.18.2' = if (aiFoundryStorageAccountEnabled) {
name: take('avm.res.storage.storage-account.${aiFoundryStorageAccountResourceName}', 64)
dependsOn: [
privateDnsZonesAiFoundryStorageAccount
]
params: {
params: {
name: aiFoundryStorageAccountResourceName
location: aiFoundryStorageAccountConfiguration.?location ?? azureOpenAILocation
tags: aiFoundryStorageAccountConfiguration.?tags ?? tags
Expand All @@ -855,7 +852,7 @@ module aiFoundryStorageAccount 'br/public:avm/res/storage/storage-account:0.18.2
diagnosticSettings: [{ workspaceResourceId: logAnalyticsWorkspace.outputs.resourceId }]
}
publicNetworkAccess: virtualNetworkEnabled ? 'Disabled' : 'Enabled'
allowBlobPublicAccess: virtualNetworkEnabled ? false : true
allowBlobPublicAccess: false
privateEndpoints: virtualNetworkEnabled
? map(items(storageAccountPrivateDnsZones), zone => {
name: 'pep-${zone.value}-${aiFoundryStorageAccountResourceName}'
Expand Down Expand Up @@ -901,7 +898,7 @@ var aiFoundryAiHubEnabled = aiFoundryAiHubConfiguration.?enabled ?? true
var aiFoundryAiHubName = aiFoundryAiHubConfiguration.?name ?? 'aih-${solutionPrefix}'
module aiFoundryAiHub 'modules/ai-hub.bicep' = if (aiFoundryAiHubEnabled) {
name: take('module.ai-hub.${aiFoundryAiHubName}', 64)
dependsOn: [
dependsOn: [
privateDnsZonesAiFoundryWorkspaceHub
]
params: {
Expand Down Expand Up @@ -994,6 +991,7 @@ module cosmosDb 'br/public:avm/res/document-db/database-account:0.12.0' = if (co
diagnosticSettings: [{ workspaceResourceId: logAnalyticsWorkspace.outputs.resourceId }]
databaseAccountOfferType: 'Standard'
enableFreeTier: false
defaultConsistencyLevel: 'Session'
networkRestrictions: {
networkAclBypass: 'None'
publicNetworkAccess: virtualNetworkEnabled ? 'Disabled' : 'Enabled'
Expand Down Expand Up @@ -1030,6 +1028,7 @@ module cosmosDb 'br/public:avm/res/document-db/database-account:0.12.0' = if (co
{
locationName: cosmosDbAccountConfiguration.?location ?? solutionLocation
failoverPriority: 0
isZoneRedundant: false
}
]
capabilitiesToAdd: [
Expand Down Expand Up @@ -1061,13 +1060,13 @@ var containerAppEnvironmentEnabled = containerAppEnvironmentConfiguration.?enabl
var containerAppEnvironmentResourceName = containerAppEnvironmentConfiguration.?name ?? 'cae-${solutionPrefix}'
module containerAppEnvironment 'modules/container-app-environment.bicep' = if (containerAppEnvironmentEnabled) {
name: take('module.container-app-environment.${containerAppEnvironmentResourceName}', 64)
params: {
params: {
name: containerAppEnvironmentResourceName
tags: containerAppEnvironmentConfiguration.?tags ?? tags
location: containerAppEnvironmentConfiguration.?location ?? solutionLocation
logAnalyticsResourceName: logAnalyticsWorkspace.outputs.name
publicNetworkAccess: 'Enabled'
zoneRedundant: virtualNetworkEnabled ? true : false
zoneRedundant: false
applicationInsightsConnectionString: applicationInsights.outputs.connectionString
enableTelemetry: enableTelemetry
subnetResourceId: virtualNetworkEnabled
Expand Down
18 changes: 15 additions & 3 deletions infra/main.bicepparam
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using './main.bicep'

param solutionPrefix = null //Type a string value to customize the prefix for your resource names
param solutionLocation = readEnvironmentVariable('AZURE_LOCATION', 'swedencentral')
param azureOpenAILocation = readEnvironmentVariable('AZURE_ENV_OPENAI_LOCATION', 'swedencentral')
param solutionLocation = readEnvironmentVariable('AZURE_LOCATION', 'eastus2')
param azureOpenAILocation = readEnvironmentVariable('AZURE_ENV_OPENAI_LOCATION', 'eastus2')
param logAnalyticsWorkspaceConfiguration = {
dataRetentionInDays: 30
}
Expand All @@ -14,8 +14,20 @@ param virtualNetworkConfiguration = {
}
param aiFoundryStorageAccountConfiguration = {
sku: 'Standard_LRS'
allowBlobPublicAccess: false
}
param containerAppEnvironmentConfiguration = {
zoneRedundant: false
}
param cosmosDbAccountConfiguration = {
location: 'eastus2'
// Explicitly disable zonal redundancy to avoid quota/availability issues
}
param webServerFarmConfiguration = {
skuCapacity: 1
skuName: 'B2'
skuName: 'S1'
}

param aiFoundryAiServicesConfiguration = {
modelCapacity: 140 // Fix the typo in the property name
}
Loading