Skip to content

Commit 1f7d9bd

Browse files
committed
reverting back to this ?
1 parent 19ab469 commit 1f7d9bd

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

infra/main.bicep

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
targetScope = 'resourceGroup'
22
@description('Location for all resources.')
3-
param location string = 'EastUS2' //Fixed for model availability, change back to resourceGroup().location
3+
param location string
44

55
@allowed([
66
'australiaeast'
@@ -28,12 +28,12 @@ param location string = 'EastUS2' //Fixed for model availability, change back to
2828
'westus3'
2929
])
3030
@description('Location for all Ai services resources. This location can be different from the resource group location.')
31-
param azureOpenAILocation string = 'eastus2' // The location used for all deployed resources. This location must be in the same region as the resource group.
31+
param azureOpenAILocation string // The location used for all deployed resources. This location must be in the same region as the resource group.
3232

3333
@minLength(3)
3434
@maxLength(20)
3535
@description('Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group.')
36-
param prefix string = take('macaeo-${uniqueString(resourceGroup().id)}', 10)
36+
param prefix string
3737

3838
@description('Tags to apply to all deployed resources')
3939
param tags object = {}
@@ -56,7 +56,7 @@ param resourceSize {
5656
maxReplicas: 1
5757
}
5858
}
59-
param capacity int = 10
59+
param capacity int = 40
6060

6161

6262
var modelVersion = '2024-08-06'
@@ -72,7 +72,7 @@ var backendDockerImageURL = '${resgistryName}.azurecr.io/macaebackend:${appVersi
7272
var frontendDockerImageURL = '${resgistryName}.azurecr.io/macaefrontend:${appVersion}'
7373

7474
var uniqueNameFormat = '${prefix}-{0}-${uniqueString(resourceGroup().id, prefix)}'
75-
var aoaiApiVersion = '2024-08-01-preview'
75+
var aoaiApiVersion = '2025-01-01-preview'
7676

7777
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
7878
name: format(uniqueNameFormat, 'logs')
@@ -120,7 +120,7 @@ resource aiServices 'Microsoft.CognitiveServices/accounts@2024-04-01-preview' =
120120
properties: {
121121
customSubDomainName: aiServicesName
122122
apiProperties: {
123-
statisticsEnabled: false
123+
//statisticsEnabled: false
124124
}
125125
}
126126
}
@@ -333,9 +333,9 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
333333
name: 'COSMOSDB_CONTAINER'
334334
value: cosmos::autogenDb::memoryContainer.name
335335
}
336-
{
337-
name: 'AZURE_OPENAI_ENDPOINT'
338-
value: aiServices.properties.endpoint
336+
{
337+
name: 'AZURE_OPENAI_ENDPOINT'
338+
value: replace(aiServices.properties.endpoint, 'cognitiveservices.azure.com', 'openai.azure.com')
339339
}
340340
{
341341
name: 'AZURE_OPENAI_MODEL_NAME'
@@ -391,9 +391,9 @@ resource frontendAppServicePlan 'Microsoft.Web/serverfarms@2021-02-01' = {
391391
location: location
392392
tags: tags
393393
sku: {
394-
name: 'P1v2'
394+
name: 'B2'
395395
capacity: 1
396-
tier: 'PremiumV2'
396+
tier: 'Basic'
397397
}
398398
properties: {
399399
reserved: true
@@ -428,6 +428,10 @@ resource frontendAppService 'Microsoft.Web/sites@2021-02-01' = {
428428
name: 'BACKEND_API_URL'
429429
value: 'https://${containerApp.properties.configuration.ingress.fqdn}'
430430
}
431+
{
432+
name: 'AUTH_ENABLED'
433+
value: 'false'
434+
}
431435
]
432436
}
433437
}

0 commit comments

Comments
 (0)