Skip to content
Open
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
6 changes: 3 additions & 3 deletions infrastructure/deploy.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
param([Parameter(mandatory=$true, HelpMessage="Subscirption ID")]
[string]
$subscriptionId='eb51c20e-72d0-49ea-b7fc-2b0a23c73341',
$subscriptionId,

[Parameter(mandatory=$true, HelpMessage="Resource group name")]
[string]
$resourceGroupName='ai-sentry-rg',
$resourceGroupName,

[Parameter(mandatory=$true, HelpMessage="Location of resource group")]
[string]
$location='australiaeast')
$location)

$ProgressPreference = "SilentlyContinue"

Expand Down
69 changes: 69 additions & 0 deletions infrastructure/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,75 @@ module databaseAccount 'br/public:avm/res/document-db/database-account:0.5.4' =
}
}

<<<<<<< Updated upstream
=======
// 3.1 Add CosmosDB Containers

// module cosmosDbFulllogsContainer 'br/public:avm/res/document-db/container:0.5.4' = {
// name: '${uniqueString(deployment().name)}-cosmosDbFullLogsContainerCreation'
// params: {
// // Required parameters
// databaseAccountName: databaseAccount.outputs.databaseAccountName
// databaseName: 'ai-sentry'
// containerName: 'request-logs'
// partitionKeyPath: '/LogId'
// throughput: 400
// // Non-required parameters
// indexingPolicy: {
// automatic: true
// includedPaths: [
// {
// path: '/*'
// indexes: [
// {
// kind: 'Range'
// dataType: 'Number'
// }
// {
// kind: 'Range'
// dataType: 'String'
// }
// ]
// }
// ]
// }
// tags: tags
// }
// }

// module cosmosDbSummaryContainer 'br/public:avm/res/document-db/container:0.5.4' = {
// name: '${uniqueString(deployment().name)}-cosmosDbContainersCreation'
// params: {
// // Required parameters
// databaseAccountName: databaseAccount.outputs.databaseAccountName
// databaseName: 'ai-sentry'
// containerName: 'summary-logs'
// partitionKeyPath: '/LogId'
// throughput: 400
// // Non-required parameters
// indexingPolicy: {
// automatic: true
// includedPaths: [
// {
// path: '/*'
// indexes: [
// {
// kind: 'Range'
// dataType: 'Number'
// }
// {
// kind: 'Range'
// dataType: 'String'
// }
// ]
// }
// ]
// }
// tags: tags
// }
// }

>>>>>>> Stashed changes
// 4. Create OpenAI resources
module openAI 'open-ai/main.bicep' = {
name: '${uniqueString(deployment().name)}-openAICreation'
Expand Down
19 changes: 6 additions & 13 deletions infrastructure/main.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
"aksPrimaryAgentPoolProfile": {
"value": [
{
"count": 1,
"count": 2,
"mode": "System",
"name": "systempool",
"vmSize": "Standard_B2s"
"vmSize": "Standard_D8ds_v5"
}
]
},
"containerRegistryName": {
"value": "aisentryacr001"
"value": "vhxmaaisentryacr001"
},
"cosmosDbName": {
"value": "aisentrycosmodb001"
"value": "vhxmaaisentrycosmodb001"
},
"capabilitiesToAdd": {
"value": [
Expand All @@ -47,7 +47,7 @@
]
},
"openAiName": {
"value": "aisentryopenai"
"value": "aisentry-openai"
},
"openAiLocation": {
"value": "australiaeast"
Expand All @@ -63,18 +63,11 @@
"sku": "Standard",
"capacity": 1,
"raiPolicyName": ""
},
{
"name": "gpt-35-turbo",
"version": "0613",
"sku": "Standard",
"capacity": 1,
"raiPolicyName": ""
}
]
},
"apimName": {
"value": "aisentryapim001"
"value": "vhxmaaisentryapim"
},
"apimPublisherEmail": {
"value": "publisher@email.com"
Expand Down