|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.33.93.31351", |
8 | | - "templateHash": "7761029633111154178" |
| 8 | + "templateHash": "5098669417344941046" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
1139 | 1139 | "solutionName": { |
1140 | 1140 | "value": "[variables('solutionPrefix')]" |
1141 | 1141 | }, |
| 1142 | + "aiSearchService": { |
| 1143 | + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiSearchService.value]" |
| 1144 | + }, |
| 1145 | + "AzureSearchKey": { |
| 1146 | + "reference": { |
| 1147 | + "keyVault": { |
| 1148 | + "id": "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.KeyVault/vaults', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.keyvaultName.value)]" |
| 1149 | + }, |
| 1150 | + "secretName": "AZURE-SEARCH-KEY" |
| 1151 | + } |
| 1152 | + }, |
1142 | 1153 | "AzureOpenAIEndpoint": { |
1143 | 1154 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiServicesTarget.value]" |
1144 | 1155 | }, |
|
1182 | 1193 | "_generator": { |
1183 | 1194 | "name": "bicep", |
1184 | 1195 | "version": "0.33.93.31351", |
1185 | | - "templateHash": "10772344907596853045" |
| 1196 | + "templateHash": "3425162160352923460" |
1186 | 1197 | } |
1187 | 1198 | }, |
1188 | 1199 | "parameters": { |
|
1260 | 1271 | "type": "string", |
1261 | 1272 | "defaultValue": "" |
1262 | 1273 | }, |
| 1274 | + "aiSearchService": { |
| 1275 | + "type": "string" |
| 1276 | + }, |
| 1277 | + "AzureSearchKey": { |
| 1278 | + "type": "securestring", |
| 1279 | + "defaultValue": "", |
| 1280 | + "metadata": { |
| 1281 | + "description": "Azure Search Key" |
| 1282 | + } |
| 1283 | + }, |
| 1284 | + "AzureSearchUseSemanticSearch": { |
| 1285 | + "type": "string", |
| 1286 | + "defaultValue": "", |
| 1287 | + "metadata": { |
| 1288 | + "description": "Enable Semantic Search in Azure Search" |
| 1289 | + } |
| 1290 | + }, |
| 1291 | + "AzureSearchEnableInDomain": { |
| 1292 | + "type": "string", |
| 1293 | + "defaultValue": "", |
| 1294 | + "metadata": { |
| 1295 | + "description": "Enable In-Domain Search in Azure Search" |
| 1296 | + } |
| 1297 | + }, |
| 1298 | + "AzureSearchTopK": { |
| 1299 | + "type": "string", |
| 1300 | + "defaultValue": "", |
| 1301 | + "metadata": { |
| 1302 | + "description": "Azure Search Top K" |
| 1303 | + } |
| 1304 | + }, |
| 1305 | + "AzureSearchIndexIsPrechunked": { |
| 1306 | + "type": "string", |
| 1307 | + "defaultValue": "", |
| 1308 | + "metadata": { |
| 1309 | + "description": "Azure Search Index Is Prechunked" |
| 1310 | + } |
| 1311 | + }, |
| 1312 | + "AzureSearchContentColumns": { |
| 1313 | + "type": "string", |
| 1314 | + "defaultValue": "", |
| 1315 | + "metadata": { |
| 1316 | + "description": "Azure Search Content Columns" |
| 1317 | + } |
| 1318 | + }, |
| 1319 | + "AzureSearchTitleColumn": { |
| 1320 | + "type": "string", |
| 1321 | + "defaultValue": "", |
| 1322 | + "metadata": { |
| 1323 | + "description": "Azure Search Title Column" |
| 1324 | + } |
| 1325 | + }, |
| 1326 | + "AzureSearchUrlColumn": { |
| 1327 | + "type": "string", |
| 1328 | + "defaultValue": "", |
| 1329 | + "metadata": { |
| 1330 | + "description": "Azure Search URL Column" |
| 1331 | + } |
| 1332 | + }, |
| 1333 | + "AzureSearchFilenameColumn": { |
| 1334 | + "type": "string", |
| 1335 | + "defaultValue": "", |
| 1336 | + "metadata": { |
| 1337 | + "description": "Azure Search Filename Column" |
| 1338 | + } |
| 1339 | + }, |
| 1340 | + "AzureSearchSemanticSearchConfig": { |
| 1341 | + "type": "string", |
| 1342 | + "defaultValue": "", |
| 1343 | + "metadata": { |
| 1344 | + "description": "Azure Search Semantic Search Config" |
| 1345 | + } |
| 1346 | + }, |
1263 | 1347 | "AZURE_COSMOSDB_ACCOUNT": { |
1264 | 1348 | "type": "string", |
1265 | 1349 | "defaultValue": "", |
1266 | 1350 | "metadata": { |
1267 | 1351 | "description": "Azure Cosmos DB Account" |
1268 | 1352 | } |
1269 | 1353 | }, |
| 1354 | + "AzureSearchIndex": { |
| 1355 | + "type": "string", |
| 1356 | + "defaultValue": "", |
| 1357 | + "metadata": { |
| 1358 | + "description": "Azure Search Index" |
| 1359 | + } |
| 1360 | + }, |
1270 | 1361 | "AZURE_COSMOSDB_CONVERSATIONS_CONTAINER": { |
1271 | 1362 | "type": "string", |
1272 | 1363 | "defaultValue": "", |
|
1357 | 1448 | "name": "APPINSIGHTS_INSTRUMENTATIONKEY", |
1358 | 1449 | "value": "[reference(parameters('applicationInsightsId'), '2015-05-01').InstrumentationKey]" |
1359 | 1450 | }, |
| 1451 | + { |
| 1452 | + "name": "AZURE_SEARCH_SERVICE", |
| 1453 | + "value": "[parameters('aiSearchService')]" |
| 1454 | + }, |
| 1455 | + { |
| 1456 | + "name": "AZURE_SEARCH_INDEX", |
| 1457 | + "value": "[parameters('AzureSearchIndex')]" |
| 1458 | + }, |
| 1459 | + { |
| 1460 | + "name": "AZURE_SEARCH_KEY", |
| 1461 | + "value": "[parameters('AzureSearchKey')]" |
| 1462 | + }, |
| 1463 | + { |
| 1464 | + "name": "AZURE_SEARCH_USE_SEMANTIC_SEARCH", |
| 1465 | + "value": "[parameters('AzureSearchUseSemanticSearch')]" |
| 1466 | + }, |
| 1467 | + { |
| 1468 | + "name": "AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG", |
| 1469 | + "value": "[parameters('AzureSearchSemanticSearchConfig')]" |
| 1470 | + }, |
| 1471 | + { |
| 1472 | + "name": "AZURE_SEARCH_INDEX_IS_PRECHUNKED", |
| 1473 | + "value": "[parameters('AzureSearchIndexIsPrechunked')]" |
| 1474 | + }, |
| 1475 | + { |
| 1476 | + "name": "AZURE_SEARCH_TOP_K", |
| 1477 | + "value": "[parameters('AzureSearchTopK')]" |
| 1478 | + }, |
| 1479 | + { |
| 1480 | + "name": "AZURE_SEARCH_ENABLE_IN_DOMAIN", |
| 1481 | + "value": "[parameters('AzureSearchEnableInDomain')]" |
| 1482 | + }, |
| 1483 | + { |
| 1484 | + "name": "AZURE_SEARCH_CONTENT_COLUMNS", |
| 1485 | + "value": "[parameters('AzureSearchContentColumns')]" |
| 1486 | + }, |
| 1487 | + { |
| 1488 | + "name": "AZURE_SEARCH_FILENAME_COLUMN", |
| 1489 | + "value": "[parameters('AzureSearchFilenameColumn')]" |
| 1490 | + }, |
| 1491 | + { |
| 1492 | + "name": "AZURE_SEARCH_TITLE_COLUMN", |
| 1493 | + "value": "[parameters('AzureSearchTitleColumn')]" |
| 1494 | + }, |
| 1495 | + { |
| 1496 | + "name": "AZURE_SEARCH_URL_COLUMN", |
| 1497 | + "value": "[parameters('AzureSearchUrlColumn')]" |
| 1498 | + }, |
1360 | 1499 | { |
1361 | 1500 | "name": "AZURE_OPENAI_API_VERSION", |
1362 | 1501 | "value": "[parameters('azureOpenAIApiVersion')]" |
|
1496 | 1635 | "_generator": { |
1497 | 1636 | "name": "bicep", |
1498 | 1637 | "version": "0.33.93.31351", |
1499 | | - "templateHash": "3100365088410602500" |
| 1638 | + "templateHash": "3309828108890144070" |
1500 | 1639 | } |
1501 | 1640 | }, |
1502 | 1641 | "parameters": { |
|
1548 | 1687 | }, |
1549 | 1688 | "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", |
1550 | 1689 | "apiVersion": "2022-05-15", |
1551 | | - "name": "[format('{0}/{1}/{2}', split(format('{0}/{1}', variables('accountName'), variables('databaseName')), '/')[0], split(format('{0}/{1}', variables('accountName'), variables('databaseName')), '/')[1], variables('containers')[copyIndex()].name)]", |
| 1690 | + "name": "[format('{0}/{1}/{2}', variables('accountName'), variables('databaseName'), variables('containers')[copyIndex()].name)]", |
1552 | 1691 | "properties": { |
1553 | 1692 | "resource": { |
1554 | 1693 | "id": "[variables('containers')[copyIndex()].id]", |
|
1561 | 1700 | "options": {} |
1562 | 1701 | }, |
1563 | 1702 | "dependsOn": [ |
1564 | | - "[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', split(format('{0}/{1}', variables('accountName'), variables('databaseName')), '/')[0], split(format('{0}/{1}', variables('accountName'), variables('databaseName')), '/')[1])]" |
| 1703 | + "[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', variables('accountName'), variables('databaseName'))]" |
1565 | 1704 | ] |
1566 | 1705 | }, |
1567 | 1706 | { |
|
0 commit comments