Skip to content

Commit

Permalink
Merge pull request #80 from Azure-Samples/prameterize-mongo-sku
Browse files Browse the repository at this point in the history
parameterize mongo sku
  • Loading branch information
john0isaac authored Aug 29, 2024
2 parents 55f698a + 9e20a3e commit 28246c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ var mongoAdminUser = 'admin${uniqueString(resourceGroup.id)}'
@description('Mongo Server administrator password')
param mongoAdminPassword string

@description('SKU to use for Cosmos DB for MongoDB vCore Plan')
param mongoServiceSku string

param openAIDeploymentName string = '${name}-openai'
param chatGptDeploymentName string = 'chat-gpt'
param chatGptDeploymentCapacity int = 30
Expand Down Expand Up @@ -129,7 +132,7 @@ module mongoCluster 'core/database/cosmos/mongo/cosmos-mongo-cluster.bicep' = {
administratorLoginPassword: mongoAdminPassword
storage: 32
nodeCount: 1
sku: 'M25'
sku: mongoServiceSku
allowAzureIPsFirewall: true
}
}
Expand Down
3 changes: 3 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
},
"appServiceSku": {
"value": "${AZURE_APP_SERVICE_SKU=B1}"
},
"mongoServiceSku":{
"value": "${AZURE_MONGO_SERVICE_SKU=M25}"
}
}
}

0 comments on commit 28246c4

Please sign in to comment.