Skip to content

Commit 6e028f3

Browse files
committed
update cosmos mongo deployment
1 parent 1234b54 commit 6e028f3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

infra/main.bicep

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,12 @@ module avmCosmosDB 'br/public:avm/res/document-db/database-account:0.15.0' = {
872872
params: {
873873
name: '${abbrs.databases.cosmosDBDatabase}${deployment_param.solution_prefix}'
874874
location: deployment_param.resource_group_location
875-
mongodbDatabases: []
875+
mongodbDatabases: [
876+
{
877+
name: 'default'
878+
tag: 'default database'
879+
}
880+
]
876881
tags: {
877882
app: deployment_param.solution_prefix
878883
location: deployment_param.resource_group_location
@@ -882,12 +887,12 @@ module avmCosmosDB 'br/public:avm/res/document-db/database-account:0.15.0' = {
882887
serverVersion: '7.0'
883888
capabilitiesToAdd: [
884889
'EnableMongo'
885-
'EnableServerless'
886890
]
887891
enableAnalyticalStorage: true
888892
defaultConsistencyLevel: 'Session'
889893
maxIntervalInSeconds: 5
890894
maxStalenessPrefix: 100
895+
zoneRedundant: false
891896
}
892897
}
893898
// module cosmosdb './deploy_cosmos_db.bicep' = {

0 commit comments

Comments
 (0)