|
4 | 4 | "metadata": { |
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | | - "version": "0.33.93.31351", |
8 | | - "templateHash": "9583552693408867324" |
| 7 | + "version": "0.28.1.47646", |
| 8 | + "templateHash": "12766041167398442432" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
97 | 97 | } |
98 | 98 | }, |
99 | 99 | "variables": { |
100 | | - "solutionPrefix": "[parameters('environmentName')]", |
101 | 100 | "gptModelVersion": "2024-02-15-preview", |
| 101 | + "uniqueId": "[toLower(uniqueString(subscription().id, parameters('environmentName'), resourceGroup().location))]", |
| 102 | + "solutionPrefix": "[format('km{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]", |
102 | 103 | "resourceGroupLocation": "[resourceGroup().location]", |
103 | | - "resourceGroupName": "[resourceGroup().name]", |
104 | 104 | "solutionLocation": "[variables('resourceGroupLocation')]", |
105 | 105 | "baseUrl": "https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/" |
106 | 106 | }, |
|
129 | 129 | "metadata": { |
130 | 130 | "_generator": { |
131 | 131 | "name": "bicep", |
132 | | - "version": "0.33.93.31351", |
133 | | - "templateHash": "4123789684929590981" |
| 132 | + "version": "0.28.1.47646", |
| 133 | + "templateHash": "14133192615685065374" |
134 | 134 | } |
135 | 135 | }, |
136 | 136 | "parameters": { |
|
221 | 221 | "metadata": { |
222 | 222 | "_generator": { |
223 | 223 | "name": "bicep", |
224 | | - "version": "0.33.93.31351", |
225 | | - "templateHash": "4388214478635448075" |
| 224 | + "version": "0.28.1.47646", |
| 225 | + "templateHash": "9096960510978747660" |
226 | 226 | } |
227 | 227 | }, |
228 | 228 | "parameters": { |
|
365 | 365 | "metadata": { |
366 | 366 | "_generator": { |
367 | 367 | "name": "bicep", |
368 | | - "version": "0.33.93.31351", |
369 | | - "templateHash": "18123322246729358641" |
| 368 | + "version": "0.28.1.47646", |
| 369 | + "templateHash": "17067117464506504820" |
370 | 370 | } |
371 | 371 | }, |
372 | 372 | "parameters": { |
|
1057 | 1057 | "metadata": { |
1058 | 1058 | "_generator": { |
1059 | 1059 | "name": "bicep", |
1060 | | - "version": "0.33.93.31351", |
1061 | | - "templateHash": "1505719283486163574" |
| 1060 | + "version": "0.28.1.47646", |
| 1061 | + "templateHash": "17222683008908251854" |
1062 | 1062 | } |
1063 | 1063 | }, |
1064 | 1064 | "parameters": { |
|
1078 | 1078 | }, |
1079 | 1079 | "saName": { |
1080 | 1080 | "type": "string", |
1081 | | - "defaultValue": "[format('{0}storageaccount', parameters('solutionName'))]", |
| 1081 | + "defaultValue": "[format('{0}storage', parameters('solutionName'))]", |
1082 | 1082 | "metadata": { |
1083 | 1083 | "description": "Name" |
1084 | 1084 | } |
|
1155 | 1155 | "publicAccess": "None" |
1156 | 1156 | }, |
1157 | 1157 | "dependsOn": [ |
1158 | | - "[resourceId('Microsoft.Storage/storageAccounts/blobServices', parameters('saName'), 'default')]", |
1159 | | - "[resourceId('Microsoft.Storage/storageAccounts', parameters('saName'))]" |
| 1158 | + "[resourceId('Microsoft.Storage/storageAccounts/blobServices', parameters('saName'), 'default')]" |
1160 | 1159 | ] |
1161 | 1160 | }, |
1162 | 1161 | { |
|
1241 | 1240 | "metadata": { |
1242 | 1241 | "_generator": { |
1243 | 1242 | "name": "bicep", |
1244 | | - "version": "0.33.93.31351", |
1245 | | - "templateHash": "3100365088410602500" |
| 1243 | + "version": "0.28.1.47646", |
| 1244 | + "templateHash": "6528561682505001396" |
1246 | 1245 | } |
1247 | 1246 | }, |
1248 | 1247 | "parameters": { |
|
1289 | 1288 | "resources": [ |
1290 | 1289 | { |
1291 | 1290 | "copy": { |
1292 | | - "name": "database::list", |
| 1291 | + "name": "list", |
1293 | 1292 | "count": "[length(variables('containers'))]" |
1294 | 1293 | }, |
1295 | 1294 | "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", |
|
1447 | 1446 | "metadata": { |
1448 | 1447 | "_generator": { |
1449 | 1448 | "name": "bicep", |
1450 | | - "version": "0.33.93.31351", |
1451 | | - "templateHash": "6170430466600233564" |
| 1449 | + "version": "0.28.1.47646", |
| 1450 | + "templateHash": "6997300029110879816" |
1452 | 1451 | } |
1453 | 1452 | }, |
1454 | 1453 | "parameters": { |
|
1621 | 1620 | "metadata": { |
1622 | 1621 | "_generator": { |
1623 | 1622 | "name": "bicep", |
1624 | | - "version": "0.33.93.31351", |
1625 | | - "templateHash": "509460209037223451" |
| 1623 | + "version": "0.28.1.47646", |
| 1624 | + "templateHash": "1311463012511991186" |
1626 | 1625 | } |
1627 | 1626 | }, |
1628 | 1627 | "parameters": { |
|
1704 | 1703 | "metadata": { |
1705 | 1704 | "_generator": { |
1706 | 1705 | "name": "bicep", |
1707 | | - "version": "0.33.93.31351", |
1708 | | - "templateHash": "16955379019952955448" |
| 1706 | + "version": "0.28.1.47646", |
| 1707 | + "templateHash": "3736288497878109757" |
1709 | 1708 | } |
1710 | 1709 | }, |
1711 | 1710 | "parameters": { |
|
1792 | 1791 | }, |
1793 | 1792 | "secretName": "SQLDB-PASSWORD" |
1794 | 1793 | } |
1795 | | - }, |
1796 | | - "managedIdentityObjectId": { |
1797 | | - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity'), '2022-09-01').outputs.managedIdentityOutput.value.objectId]" |
1798 | 1794 | } |
1799 | 1795 | }, |
1800 | 1796 | "template": { |
|
1803 | 1799 | "metadata": { |
1804 | 1800 | "_generator": { |
1805 | 1801 | "name": "bicep", |
1806 | | - "version": "0.33.93.31351", |
1807 | | - "templateHash": "8291781429768450130" |
| 1802 | + "version": "0.28.1.47646", |
| 1803 | + "templateHash": "3075889647785880770" |
1808 | 1804 | } |
1809 | 1805 | }, |
1810 | 1806 | "parameters": { |
|
1829 | 1825 | "sqlDbPwd": { |
1830 | 1826 | "type": "securestring" |
1831 | 1827 | }, |
1832 | | - "managedIdentityObjectId": { |
1833 | | - "type": "string" |
1834 | | - }, |
1835 | 1828 | "imageTag": { |
1836 | 1829 | "type": "string" |
1837 | 1830 | } |
1838 | 1831 | }, |
1839 | 1832 | "variables": { |
1840 | 1833 | "functionAppName": "[format('{0}-charts-fn', parameters('solutionName'))]", |
1841 | | - "storageaccountname": "[format('{0}chartsfnacc', parameters('solutionName'))]", |
| 1834 | + "storageaccountname": "[format('{0}chartfnacc', parameters('solutionName'))]", |
1842 | 1835 | "dockerImage": "[format('DOCKER|kmcontainerreg.azurecr.io/km-charts-function:{0}', parameters('imageTag'))]", |
1843 | 1836 | "environmentName": "[format('{0}-charts-fn-env', parameters('solutionName'))]" |
1844 | 1837 | }, |
|
1953 | 1946 | }, |
1954 | 1947 | "dependsOn": [ |
1955 | 1948 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry')]", |
1956 | | - "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity')]", |
1957 | 1949 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db')]" |
1958 | 1950 | ] |
1959 | 1951 | }, |
|
2034 | 2026 | }, |
2035 | 2027 | "aiProjectName": { |
2036 | 2028 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiProjectName.value]" |
2037 | | - }, |
2038 | | - "managedIdentityObjectId": { |
2039 | | - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity'), '2022-09-01').outputs.managedIdentityOutput.value.objectId]" |
2040 | 2029 | } |
2041 | 2030 | }, |
2042 | 2031 | "template": { |
|
2045 | 2034 | "metadata": { |
2046 | 2035 | "_generator": { |
2047 | 2036 | "name": "bicep", |
2048 | | - "version": "0.33.93.31351", |
2049 | | - "templateHash": "10412104505605413963" |
| 2037 | + "version": "0.28.1.47646", |
| 2038 | + "templateHash": "7978725857339866942" |
2050 | 2039 | } |
2051 | 2040 | }, |
2052 | 2041 | "parameters": { |
|
2098 | 2087 | "sqlDbPwd": { |
2099 | 2088 | "type": "securestring" |
2100 | 2089 | }, |
2101 | | - "managedIdentityObjectId": { |
2102 | | - "type": "string" |
2103 | | - }, |
2104 | 2090 | "imageTag": { |
2105 | 2091 | "type": "string" |
2106 | 2092 | } |
|
2275 | 2261 | }, |
2276 | 2262 | "dependsOn": [ |
2277 | 2263 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry')]", |
2278 | | - "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity')]", |
2279 | 2264 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db')]" |
2280 | 2265 | ] |
2281 | 2266 | }, |
|
2291 | 2276 | "parameters": { |
2292 | 2277 | "solutionName": { |
2293 | 2278 | "value": "[variables('solutionPrefix')]" |
2294 | | - }, |
2295 | | - "identity": { |
2296 | | - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity'), '2022-09-01').outputs.managedIdentityOutput.value.id]" |
2297 | 2279 | } |
2298 | 2280 | }, |
2299 | 2281 | "template": { |
|
2302 | 2284 | "metadata": { |
2303 | 2285 | "_generator": { |
2304 | 2286 | "name": "bicep", |
2305 | | - "version": "0.33.93.31351", |
2306 | | - "templateHash": "11904916764630875140" |
| 2287 | + "version": "0.28.1.47646", |
| 2288 | + "templateHash": "5504175264354263888" |
2307 | 2289 | } |
2308 | 2290 | }, |
2309 | 2291 | "parameters": { |
|
2312 | 2294 | "metadata": { |
2313 | 2295 | "description": "Specifies the location for resources." |
2314 | 2296 | } |
2315 | | - }, |
2316 | | - "identity": { |
2317 | | - "type": "string" |
2318 | 2297 | } |
2319 | 2298 | }, |
2320 | 2299 | "variables": { |
|
2340 | 2319 | }, |
2341 | 2320 | "dependsOn": [ |
2342 | 2321 | "[resourceId('Microsoft.Resources/deployments', 'deploy_azure_function_charts')]", |
2343 | | - "[resourceId('Microsoft.Resources/deployments', 'deploy_azure_function_rag')]", |
2344 | | - "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity')]" |
| 2322 | + "[resourceId('Microsoft.Resources/deployments', 'deploy_azure_function_rag')]" |
2345 | 2323 | ] |
2346 | 2324 | }, |
2347 | 2325 | { |
|
2358 | 2336 | "imageTag": { |
2359 | 2337 | "value": "[parameters('imageTag')]" |
2360 | 2338 | }, |
2361 | | - "identity": { |
2362 | | - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity'), '2022-09-01').outputs.managedIdentityOutput.value.id]" |
2363 | | - }, |
2364 | 2339 | "solutionName": { |
2365 | 2340 | "value": "[variables('solutionPrefix')]" |
2366 | 2341 | }, |
2367 | | - "solutionLocation": { |
2368 | | - "value": "[variables('solutionLocation')]" |
2369 | | - }, |
2370 | 2342 | "AzureOpenAIEndpoint": { |
2371 | 2343 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiServicesTarget.value]" |
2372 | 2344 | }, |
|
2408 | 2380 | "AZURE_COSMOSDB_ACCOUNT": { |
2409 | 2381 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosAccountName.value]" |
2410 | 2382 | }, |
2411 | | - "AZURE_COSMOSDB_ACCOUNT_KEY": { |
2412 | | - "reference": { |
2413 | | - "keyVault": { |
2414 | | - "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)]" |
2415 | | - }, |
2416 | | - "secretName": "AZURE-COSMOSDB-ACCOUNT-KEY" |
2417 | | - } |
2418 | | - }, |
2419 | 2383 | "AZURE_COSMOSDB_CONVERSATIONS_CONTAINER": { |
2420 | 2384 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosContainerName.value]" |
2421 | 2385 | }, |
|
2432 | 2396 | "metadata": { |
2433 | 2397 | "_generator": { |
2434 | 2398 | "name": "bicep", |
2435 | | - "version": "0.33.93.31351", |
2436 | | - "templateHash": "1923507558856922316" |
| 2399 | + "version": "0.28.1.47646", |
| 2400 | + "templateHash": "10345305852452938336" |
2437 | 2401 | } |
2438 | 2402 | }, |
2439 | 2403 | "parameters": { |
|
2445 | 2409 | "description": "Solution Name" |
2446 | 2410 | } |
2447 | 2411 | }, |
2448 | | - "solutionLocation": { |
2449 | | - "type": "string", |
2450 | | - "metadata": { |
2451 | | - "description": "Solution Location" |
2452 | | - } |
2453 | | - }, |
2454 | | - "identity": { |
2455 | | - "type": "string" |
2456 | | - }, |
2457 | 2412 | "HostingPlanName": { |
2458 | 2413 | "type": "string", |
2459 | 2414 | "defaultValue": "[format('{0}-app-service-plan', parameters('solutionName'))]", |
|
2554 | 2509 | "description": "Azure Cosmos DB Account" |
2555 | 2510 | } |
2556 | 2511 | }, |
2557 | | - "AZURE_COSMOSDB_ACCOUNT_KEY": { |
2558 | | - "type": "securestring", |
2559 | | - "defaultValue": "", |
2560 | | - "metadata": { |
2561 | | - "description": "Azure Cosmos DB Account Key" |
2562 | | - } |
2563 | | - }, |
2564 | 2512 | "AZURE_COSMOSDB_CONVERSATIONS_CONTAINER": { |
2565 | 2513 | "type": "string", |
2566 | 2514 | "defaultValue": "", |
|
2588 | 2536 | }, |
2589 | 2537 | "variables": { |
2590 | 2538 | "WebAppImageName": "[format('DOCKER|kmcontainerreg.azurecr.io/km-app:{0}', parameters('imageTag'))]", |
2591 | | - "REACT_APP_LAYOUT_CONFIG": "{\r\n \"appConfig\": {\r\n \"THREE_COLUMN\": {\r\n \"DASHBOARD\": 50,\r\n \"CHAT\": 33,\r\n \"CHATHISTORY\": 17\r\n },\r\n \"TWO_COLUMN\": {\r\n \"DASHBOARD_CHAT\": {\r\n \"DASHBOARD\": 65,\r\n \"CHAT\": 35\r\n },\r\n \"CHAT_CHATHISTORY\": {\r\n \"CHAT\": 80,\r\n \"CHATHISTORY\": 20\r\n }\r\n }\r\n },\r\n \"charts\": [\r\n {\r\n \"id\": \"SATISFIED\",\r\n \"name\": \"Satisfied\",\r\n \"type\": \"card\",\r\n \"layout\": { \"row\": 1, \"column\": 1, \"height\": 11 }\r\n },\r\n {\r\n \"id\": \"TOTAL_CALLS\",\r\n \"name\": \"Total Calls\",\r\n \"type\": \"card\",\r\n \"layout\": { \"row\": 1, \"column\": 2, \"span\": 1 }\r\n },\r\n {\r\n \"id\": \"AVG_HANDLING_TIME\",\r\n \"name\": \"Average Handling Time\",\r\n \"type\": \"card\",\r\n \"layout\": { \"row\": 1, \"column\": 3, \"span\": 1 }\r\n },\r\n {\r\n \"id\": \"SENTIMENT\",\r\n \"name\": \"Topics Overview\",\r\n \"type\": \"donutchart\",\r\n \"layout\": { \"row\": 2, \"column\": 1, \"width\": 40, \"height\": 44.5 }\r\n },\r\n {\r\n \"id\": \"AVG_HANDLING_TIME_BY_TOPIC\",\r\n \"name\": \"Average Handling Time By Topic\",\r\n \"type\": \"bar\",\r\n \"layout\": { \"row\": 2, \"column\": 2, \"row-span\": 2, \"width\": 60 }\r\n },\r\n {\r\n \"id\": \"TOPICS\",\r\n \"name\": \"Trending Topics\",\r\n \"type\": \"table\",\r\n \"layout\": { \"row\": 3, \"column\": 1, \"span\": 2 }\r\n },\r\n {\r\n \"id\": \"KEY_PHRASES\",\r\n \"name\": \"Key Phrases\",\r\n \"type\": \"wordcloud\",\r\n \"layout\": { \"row\": 3, \"column\": 2, \"height\": 44.5 }\r\n }\r\n ]\r\n}" |
| 2539 | + "REACT_APP_LAYOUT_CONFIG": "{\n \"appConfig\": {\n \"THREE_COLUMN\": {\n \"DASHBOARD\": 50,\n \"CHAT\": 33,\n \"CHATHISTORY\": 17\n },\n \"TWO_COLUMN\": {\n \"DASHBOARD_CHAT\": {\n \"DASHBOARD\": 65,\n \"CHAT\": 35\n },\n \"CHAT_CHATHISTORY\": {\n \"CHAT\": 80,\n \"CHATHISTORY\": 20\n }\n }\n },\n \"charts\": [\n {\n \"id\": \"SATISFIED\",\n \"name\": \"Satisfied\",\n \"type\": \"card\",\n \"layout\": { \"row\": 1, \"column\": 1, \"height\": 11 }\n },\n {\n \"id\": \"TOTAL_CALLS\",\n \"name\": \"Total Calls\",\n \"type\": \"card\",\n \"layout\": { \"row\": 1, \"column\": 2, \"span\": 1 }\n },\n {\n \"id\": \"AVG_HANDLING_TIME\",\n \"name\": \"Average Handling Time\",\n \"type\": \"card\",\n \"layout\": { \"row\": 1, \"column\": 3, \"span\": 1 }\n },\n {\n \"id\": \"SENTIMENT\",\n \"name\": \"Topics Overview\",\n \"type\": \"donutchart\",\n \"layout\": { \"row\": 2, \"column\": 1, \"width\": 40, \"height\": 44.5 }\n },\n {\n \"id\": \"AVG_HANDLING_TIME_BY_TOPIC\",\n \"name\": \"Average Handling Time By Topic\",\n \"type\": \"bar\",\n \"layout\": { \"row\": 2, \"column\": 2, \"row-span\": 2, \"width\": 60 }\n },\n {\n \"id\": \"TOPICS\",\n \"name\": \"Trending Topics\",\n \"type\": \"table\",\n \"layout\": { \"row\": 3, \"column\": 1, \"span\": 2 }\n },\n {\n \"id\": \"KEY_PHRASES\",\n \"name\": \"Key Phrases\",\n \"type\": \"wordcloud\",\n \"layout\": { \"row\": 3, \"column\": 2, \"height\": 44.5 }\n }\n ]\n}" |
2592 | 2540 | }, |
2593 | 2541 | "resources": [ |
2594 | 2542 | { |
|
2747 | 2695 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry')]", |
2748 | 2696 | "[resourceId('Microsoft.Resources/deployments', 'deploy_azure_function_urls')]", |
2749 | 2697 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db')]", |
2750 | | - "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity')]", |
2751 | 2698 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db')]" |
2752 | 2699 | ] |
2753 | 2700 | } |
|
0 commit comments