diff --git a/infrastructure/deploy.ps1 b/infrastructure/deploy.ps1 index d99cf61..3a3b514 100644 --- a/infrastructure/deploy.ps1 +++ b/infrastructure/deploy.ps1 @@ -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" diff --git a/infrastructure/main.bicep b/infrastructure/main.bicep index b54b062..6c07031 100644 --- a/infrastructure/main.bicep +++ b/infrastructure/main.bicep @@ -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' diff --git a/infrastructure/main.param.json b/infrastructure/main.param.json index 1b1cca2..fc12a11 100644 --- a/infrastructure/main.param.json +++ b/infrastructure/main.param.json @@ -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": [ @@ -47,7 +47,7 @@ ] }, "openAiName": { - "value": "aisentryopenai" + "value": "aisentry-openai" }, "openAiLocation": { "value": "australiaeast" @@ -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"