Skip to content
Merged
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
2 changes: 2 additions & 0 deletions docs/SampleQuestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

To help you get started, here are some **Sample Prompts** you can ask in the app:

> _Note: Average response time is 07 -16 seconds._ <br>
## **Sections**

### **Browse**
Expand Down
5 changes: 3 additions & 2 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,8 @@ module webServerFarm 'br/public:avm/res/web/serverfarm:0.5.0' = {
diagnosticSettings: enableMonitoring ? [{ workspaceResourceId: logAnalyticsWorkspaceResourceId }] : null
// WAF aligned configuration for Scalability
skuName: enableScalability || enableRedundancy ? 'P1v3' : 'B3'
skuCapacity: enableScalability ? 3 : 1
// skuCapacity: enableScalability ? 3 : 1
skuCapacity: 1 // skuCapacity set to 1 (not 3) due to multiple agents created per type during WAF deployment
// WAF aligned configuration for Redundancy
zoneRedundant: enableRedundancy ? true : false
}
Expand Down Expand Up @@ -1249,7 +1250,7 @@ output AI_FOUNDRY_NAME string = aiFoundryAiProjectResourceName
output AI_FOUNDRY_RG_NAME string = aiFoundryAiServicesResourceGroupName

@description('Contains AI Foundry Resource ID')
output AI_FOUNDRY_RESOURCE_ID string = useExistingAiFoundryAiProject ? azureExistingAIProjectResourceId : aiFoundryAiServices!.outputs.resourceId
output AI_FOUNDRY_RESOURCE_ID string = useExistingAiFoundryAiProject ? existingAiFoundryAiServices.id : aiFoundryAiServices!.outputs.resourceId

@description('Contains AI Search Service Name')
output AI_SEARCH_SERVICE_NAME string = aiSearch.outputs.name
Expand Down
90 changes: 46 additions & 44 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "15396608207760718220"
"version": "0.38.33.27573",
"templateHash": "12469434193126673699"
},
"name": "Document Generation Solution Accelerator",
"description": "CSA CTO Gold Standard Solution Accelerator for Document Generation.\n"
Expand Down Expand Up @@ -454,7 +454,7 @@
"logAnalyticsWorkspace": {
"condition": "[and(parameters('enableMonitoring'), not(variables('useExistingLogAnalytics')))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.operational-insights.workspace.{0}', variables('logAnalyticsWorkspaceResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -3560,7 +3560,7 @@
"applicationInsights": {
"condition": "[parameters('enableMonitoring')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.insights.component.{0}', variables('applicationInsightsResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -4296,7 +4296,7 @@
},
"userAssignedIdentity": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.managed-identity.user-assigned-identity.{0}', variables('userAssignedIdentityResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -4779,7 +4779,7 @@
"virtualNetwork": {
"condition": "[parameters('enablePrivateNetworking')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('module.virtualNetwork.{0}', variables('solutionSuffix')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -4816,8 +4816,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "15908341678380884075"
"version": "0.38.33.27573",
"templateHash": "1734974014097019118"
}
},
"definitions": {
Expand Down Expand Up @@ -5210,7 +5210,7 @@
},
"condition": "[not(empty(tryGet(parameters('subnets')[copyIndex()], 'networkSecurityGroup')))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.network.network-security-group.{0}.{1}', tryGet(parameters('subnets')[copyIndex()], 'networkSecurityGroup', 'name'), parameters('resourceSuffix')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -5862,7 +5862,7 @@
},
"virtualNetwork": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.network.virtual-network.{0}', parameters('name')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -7589,7 +7589,7 @@
"bastionHost": {
"condition": "[parameters('enablePrivateNetworking')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.network.bastion-host.{0}', variables('bastionHostName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -8908,7 +8908,7 @@
"jumpboxVM": {
"condition": "[parameters('enablePrivateNetworking')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.compute.virtual-machine.{0}', variables('jumpboxVmName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -17258,7 +17258,7 @@
},
"condition": "[parameters('enablePrivateNetworking')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[format('avm.res.network.private-dns-zone.{0}', split(variables('privateDnsZones')[copyIndex()], '.')[1])]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -20426,7 +20426,7 @@
"existingAiFoundryAiServicesDeployments": {
"condition": "[variables('useExistingAiFoundryAiProject')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('module.ai-services-model-deployments.{0}', variables('aiFoundryAiServicesResourceName')), 64)]",
"subscriptionId": "[variables('aiFoundryAiServicesSubscriptionId')]",
"resourceGroup": "[variables('aiFoundryAiServicesResourceGroupName')]",
Expand Down Expand Up @@ -20475,8 +20475,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "2655660447689660274"
"version": "0.38.33.27573",
"templateHash": "2501367807605442530"
}
},
"definitions": {
Expand Down Expand Up @@ -20805,7 +20805,7 @@
"aiFoundryAiServices": {
"condition": "[not(variables('useExistingAiFoundryAiProject'))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.cognitive-services.account.{0}', variables('aiFoundryAiServicesResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -23419,8 +23419,8 @@
},
"dependsOn": [
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
"logAnalyticsWorkspace",
"userAssignedIdentity",
"virtualNetwork"
Expand All @@ -23429,7 +23429,7 @@
"aiFoundryAiServicesProject": {
"condition": "[not(variables('useExistingAiFoundryAiProject'))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('module.ai-project.{0}', variables('aiFoundryAiProjectResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -23462,8 +23462,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "16867891653751120909"
"version": "0.38.33.27573",
"templateHash": "107641519342838452"
}
},
"parameters": {
Expand Down Expand Up @@ -23574,7 +23574,7 @@
"searchServiceToExistingAiServicesRoleAssignment": {
"condition": "[variables('useExistingAiFoundryAiProject')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "searchToExistingAiServices-roleAssignment",
"subscriptionId": "[variables('aiFoundryAiServicesSubscriptionId')]",
"resourceGroup": "[variables('aiFoundryAiServicesResourceGroupName')]",
Expand All @@ -23600,8 +23600,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "3644919950024112374"
"version": "0.38.33.27573",
"templateHash": "9717690292313179013"
}
},
"parameters": {
Expand Down Expand Up @@ -23650,7 +23650,7 @@
},
"aiSearch": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.search.search-service.{0}', variables('aiSearchName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -26026,7 +26026,7 @@
"existing_AIProject_SearchConnectionModule": {
"condition": "[variables('useExistingAiFoundryAiProject')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "aiProjectSearchConnectionDeployment",
"subscriptionId": "[variables('aiFoundryAiServicesSubscriptionId')]",
"resourceGroup": "[variables('aiFoundryAiServicesResourceGroupName')]",
Expand Down Expand Up @@ -26061,8 +26061,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "6038840175458269917"
"version": "0.38.33.27573",
"templateHash": "11311597701635556530"
}
},
"parameters": {
Expand Down Expand Up @@ -26129,7 +26129,7 @@
},
"storageAccount": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.storage.storage-account.{0}', variables('storageAccountName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -31893,15 +31893,15 @@
}
},
"dependsOn": [
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
"userAssignedIdentity",
"virtualNetwork"
]
},
"cosmosDB": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.document-db.database-account.{0}', variables('cosmosDBResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -35739,7 +35739,7 @@
},
"keyvault": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.key-vault.vault.{0}', variables('keyVaultName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -35812,15 +35812,15 @@
},
{
"name": "ADLS-ACCOUNT-KEY",
"value": "[listOutputsWithSecureValues('storageAccount', '2022-09-01').primaryAccessKey]"
"value": "[listOutputsWithSecureValues('storageAccount', '2025-04-01').primaryAccessKey]"
},
{
"name": "AZURE-COSMOSDB-ACCOUNT",
"value": "[reference('cosmosDB').outputs.name.value]"
},
{
"name": "AZURE-COSMOSDB-ACCOUNT-KEY",
"value": "[listOutputsWithSecureValues('cosmosDB', '2022-09-01').primaryReadWriteKey]"
"value": "[listOutputsWithSecureValues('cosmosDB', '2025-04-01').primaryReadWriteKey]"
},
{
"name": "AZURE-COSMOSDB-DATABASE",
Expand Down Expand Up @@ -39018,7 +39018,7 @@
},
"webServerFarm": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('avm.res.web.serverfarm.{0}', variables('webServerFarmResourceName')), 64)]",
"resourceGroup": "[resourceGroup().name]",
"properties": {
Expand Down Expand Up @@ -39047,7 +39047,9 @@
},
"diagnosticSettings": "[if(parameters('enableMonitoring'), createObject('value', createArray(createObject('workspaceResourceId', if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), reference('logAnalyticsWorkspace').outputs.resourceId.value)))), createObject('value', null()))]",
"skuName": "[if(or(parameters('enableScalability'), parameters('enableRedundancy')), createObject('value', 'P1v3'), createObject('value', 'B3'))]",
"skuCapacity": "[if(parameters('enableScalability'), createObject('value', 3), createObject('value', 1))]",
"skuCapacity": {
"value": 1
},
"zoneRedundant": "[if(parameters('enableRedundancy'), createObject('value', true()), createObject('value', false()))]"
},
"template": {
Expand Down Expand Up @@ -39590,7 +39592,7 @@
},
"webSite": {
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[take(format('module.web-sites.{0}', variables('webSiteResourceName')), 64)]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -39647,8 +39649,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "4085174230724704576"
"version": "0.38.33.27573",
"templateHash": "6605577820404885863"
}
},
"definitions": {
Expand Down Expand Up @@ -40633,7 +40635,7 @@
"count": "[length(coalesce(parameters('configs'), createArray()))]"
},
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[format('{0}-Site-Config-{1}', uniqueString(deployment().name, parameters('location')), copyIndex())]",
"properties": {
"expressionEvaluationOptions": {
Expand Down Expand Up @@ -40671,8 +40673,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "3088317872832633980"
"version": "0.38.33.27573",
"templateHash": "6347509742103743399"
},
"name": "Site App Settings",
"description": "This module deploys a Site App Setting."
Expand Down Expand Up @@ -40827,7 +40829,7 @@
"count": "[length(coalesce(parameters('privateEndpoints'), createArray()))]"
},
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2025-04-01",
"name": "[format('{0}-app-PrivateEndpoint-{1}', uniqueString(deployment().name, parameters('location')), copyIndex())]",
"subscriptionId": "[split(coalesce(tryGet(coalesce(parameters('privateEndpoints'), createArray())[copyIndex()], 'resourceGroupResourceId'), resourceGroup().id), '/')[2]]",
"resourceGroup": "[split(coalesce(tryGet(coalesce(parameters('privateEndpoints'), createArray())[copyIndex()], 'resourceGroupResourceId'), resourceGroup().id), '/')[4]]",
Expand Down Expand Up @@ -41714,7 +41716,7 @@
"metadata": {
"description": "Contains AI Foundry Resource ID"
},
"value": "[if(variables('useExistingAiFoundryAiProject'), parameters('azureExistingAIProjectResourceId'), reference('aiFoundryAiServices').outputs.resourceId.value)]"
"value": "[if(variables('useExistingAiFoundryAiProject'), extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', variables('aiFoundryAiServicesSubscriptionId'), variables('aiFoundryAiServicesResourceGroupName')), 'Microsoft.CognitiveServices/accounts', variables('aiFoundryAiServicesResourceName')), reference('aiFoundryAiServices').outputs.resourceId.value)]"
},
"AI_SEARCH_SERVICE_NAME": {
"type": "string",
Expand Down
Loading