Skip to content

Commit df82199

Browse files
fix: remove autogen reference and update azureOpenAILocation parameter
1 parent 07d8b90 commit df82199

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

infra/main.bicep

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ targetScope = 'resourceGroup'
2626
'westus3'
2727
])
2828
@description('Location for all Ai services resources. This location can be different from the resource group location.')
29-
param azureOpenAILocation string = 'eastus2'
29+
param azureOpenAILocation string
3030

3131
@minLength(3)
3232
@maxLength(20)
@@ -218,11 +218,11 @@ resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2024-05-15' = {
218218
name: '00000000-0000-0000-0000-000000000002'
219219
}
220220

221-
resource autogenDb 'sqlDatabases' = {
222-
name: 'autogen'
221+
resource macaeDb 'sqlDatabases' = {
222+
name: 'macae'
223223
properties: {
224224
resource: {
225-
id: 'autogen'
225+
id: 'macae'
226226
createMode: 'Default'
227227
}
228228
}
@@ -339,11 +339,11 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
339339
}
340340
{
341341
name: 'COSMOSDB_DATABASE'
342-
value: cosmos::autogenDb.name
342+
value: cosmos::macaeDb.name
343343
}
344344
{
345345
name: 'COSMOSDB_CONTAINER'
346-
value: cosmos::autogenDb::memoryContainer.name
346+
value: cosmos::macaeDb::memoryContainer.name
347347
}
348348
{
349349
name: 'AZURE_OPENAI_ENDPOINT'

infra/main.bicepparam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using './main.bicep'
22

33
param environmentName = readEnvironmentVariable('AZURE_ENV_NAME', 'macaetemplate')
4-
param AZURE_LOCATION = readEnvironmentVariable('AZURE_ENV_LOCATION', '')
4+
param AZURE_LOCATION = readEnvironmentVariable('AZURE_LOCATION', '')
5+
param azureOpenAILocation = readEnvironmentVariable('AZURE_OPENAI_LOCATION', 'eastus2')

infra/main.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.35.1.17967",
9-
"templateHash": "12016977205829849477"
9+
"templateHash": "5028939591915540887"
1010
}
1111
},
1212
"parameters": {
1313
"azureOpenAILocation": {
1414
"type": "string",
15-
"defaultValue": "eastus2",
1615
"allowedValues": [
1716
"australiaeast",
1817
"brazilsouth",
@@ -362,10 +361,10 @@
362361
]
363362
},
364363
"resources": {
365-
"cosmos::autogenDb::memoryContainer": {
364+
"cosmos::macaeDb::memoryContainer": {
366365
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers",
367366
"apiVersion": "2024-05-15",
368-
"name": "[format('{0}/{1}/{2}', format('{0}{1}', variables('abbrs').databases.cosmosDBDatabase, variables('solutionPrefix')), 'autogen', 'memory')]",
367+
"name": "[format('{0}/{1}/{2}', format('{0}{1}', variables('abbrs').databases.cosmosDBDatabase, variables('solutionPrefix')), 'macae', 'memory')]",
369368
"properties": {
370369
"resource": {
371370
"id": "memory",
@@ -379,7 +378,7 @@
379378
}
380379
},
381380
"dependsOn": [
382-
"cosmos::autogenDb"
381+
"cosmos::macaeDb"
383382
]
384383
},
385384
"cosmos::contributorRoleDefinition": {
@@ -391,13 +390,13 @@
391390
"cosmos"
392391
]
393392
},
394-
"cosmos::autogenDb": {
393+
"cosmos::macaeDb": {
395394
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
396395
"apiVersion": "2024-05-15",
397-
"name": "[format('{0}/{1}', format('{0}{1}', variables('abbrs').databases.cosmosDBDatabase, variables('solutionPrefix')), 'autogen')]",
396+
"name": "[format('{0}/{1}', format('{0}{1}', variables('abbrs').databases.cosmosDBDatabase, variables('solutionPrefix')), 'macae')]",
398397
"properties": {
399398
"resource": {
400-
"id": "autogen",
399+
"id": "macae",
401400
"createMode": "Default"
402401
}
403402
},
@@ -626,7 +625,7 @@
626625
},
627626
{
628627
"name": "COSMOSDB_DATABASE",
629-
"value": "autogen"
628+
"value": "macae"
630629
},
631630
{
632631
"name": "COSMOSDB_CONTAINER",
@@ -687,8 +686,8 @@
687686
"appInsights",
688687
"containerAppEnv",
689688
"cosmos",
690-
"cosmos::autogenDb",
691-
"cosmos::autogenDb::memoryContainer",
689+
"cosmos::macaeDb",
690+
"cosmos::macaeDb::memoryContainer",
692691
"pullIdentity"
693692
],
694693
"metadata": {

0 commit comments

Comments
 (0)