Skip to content

Commit

Permalink
Merge branch 'main' into use-new-extension-methods
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwyatt committed Jun 2, 2023
2 parents e036922 + 8ea63f4 commit d7f69a6
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ resource appServiceWebConfig 'Microsoft.Web/sites/config@2022-09-01' = {
netFrameworkVersion: 'v6.0'
use32BitWorkerProcess: false
vnetRouteAllEnabled: true
webSocketsEnabled: true
appSettings: [
{
name: 'AIService:Type'
Expand Down Expand Up @@ -595,6 +596,37 @@ resource sessionContainer 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/co
}
}

resource participantContainer 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers@2023-04-15' = if (deployCosmosDB) {
parent: cosmosDatabase
name: 'chatparticipants'
properties: {
resource: {
id: 'chatparticipants'
indexingPolicy: {
indexingMode: 'consistent'
automatic: true
includedPaths: [
{
path: '/*'
}
]
excludedPaths: [
{
path: '/"_etag"/?'
}
]
}
partitionKey: {
paths: [
'/id'
]
kind: 'Hash'
version: 2
}
}
}
}

resource speechAccount 'Microsoft.CognitiveServices/accounts@2022-12-01' = if (deploySpeechServices) {
name: 'cog-${uniqueName}'
location: location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.17.1.54307",
"templateHash": "4414214024449267703"
"templateHash": "11779741438695372787"
}
},
"parameters": {
Expand Down Expand Up @@ -163,7 +163,7 @@
"_generator": {
"name": "bicep",
"version": "0.17.1.54307",
"templateHash": "13834272519683618494"
"templateHash": "11121756795286782434"
}
},
"parameters": {
Expand Down Expand Up @@ -401,6 +401,7 @@
"netFrameworkVersion": "v6.0",
"use32BitWorkerProcess": false,
"vnetRouteAllEnabled": true,
"webSocketsEnabled": true,
"appSettings": [
{
"name": "AIService:Type",
Expand Down Expand Up @@ -899,6 +900,41 @@
"[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat')]"
]
},
{
"condition": "[parameters('deployCosmosDB')]",
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers",
"apiVersion": "2023-04-15",
"name": "[format('{0}/{1}/{2}', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat', 'chatparticipants')]",
"properties": {
"resource": {
"id": "chatparticipants",
"indexingPolicy": {
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*"
}
],
"excludedPaths": [
{
"path": "/\"_etag\"/?"
}
]
},
"partitionKey": {
"paths": [
"/id"
],
"kind": "Hash",
"version": 2
}
}
},
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat')]"
]
},
{
"condition": "[parameters('deploySpeechServices')]",
"type": "Microsoft.CognitiveServices/accounts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.17.1.54307",
"templateHash": "15686037844465739324"
"templateHash": "697508036669684325"
}
},
"parameters": {
Expand Down Expand Up @@ -158,7 +158,7 @@
"_generator": {
"name": "bicep",
"version": "0.17.1.54307",
"templateHash": "13834272519683618494"
"templateHash": "11121756795286782434"
}
},
"parameters": {
Expand Down Expand Up @@ -396,6 +396,7 @@
"netFrameworkVersion": "v6.0",
"use32BitWorkerProcess": false,
"vnetRouteAllEnabled": true,
"webSocketsEnabled": true,
"appSettings": [
{
"name": "AIService:Type",
Expand Down Expand Up @@ -894,6 +895,41 @@
"[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat')]"
]
},
{
"condition": "[parameters('deployCosmosDB')]",
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers",
"apiVersion": "2023-04-15",
"name": "[format('{0}/{1}/{2}', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat', 'chatparticipants')]",
"properties": {
"resource": {
"id": "chatparticipants",
"indexingPolicy": {
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*"
}
],
"excludedPaths": [
{
"path": "/\"_etag\"/?"
}
]
},
"partitionKey": {
"paths": [
"/id"
],
"kind": "Hash",
"version": 2
}
}
},
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat')]"
]
},
{
"condition": "[parameters('deploySpeechServices')]",
"type": "Microsoft.CognitiveServices/accounts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.17.1.54307",
"templateHash": "5066471234853584573"
"templateHash": "3338430546815090156"
}
},
"parameters": {
Expand Down Expand Up @@ -145,7 +145,7 @@
"_generator": {
"name": "bicep",
"version": "0.17.1.54307",
"templateHash": "13834272519683618494"
"templateHash": "11121756795286782434"
}
},
"parameters": {
Expand Down Expand Up @@ -383,6 +383,7 @@
"netFrameworkVersion": "v6.0",
"use32BitWorkerProcess": false,
"vnetRouteAllEnabled": true,
"webSocketsEnabled": true,
"appSettings": [
{
"name": "AIService:Type",
Expand Down Expand Up @@ -881,6 +882,41 @@
"[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat')]"
]
},
{
"condition": "[parameters('deployCosmosDB')]",
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers",
"apiVersion": "2023-04-15",
"name": "[format('{0}/{1}/{2}', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat', 'chatparticipants')]",
"properties": {
"resource": {
"id": "chatparticipants",
"indexingPolicy": {
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*"
}
],
"excludedPaths": [
{
"path": "/\"_etag\"/?"
}
]
},
"partitionKey": {
"paths": [
"/id"
],
"kind": "Hash",
"version": 2
}
}
},
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', toLower(format('cosmos-{0}', variables('uniqueName'))), 'CopilotChat')]"
]
},
{
"condition": "[parameters('deploySpeechServices')]",
"type": "Microsoft.CognitiveServices/accounts",
Expand Down

0 comments on commit d7f69a6

Please sign in to comment.