44 "metadata" : {
55 "_generator" : {
66 "name" : " bicep" ,
7- "version" : " 0.34.44.8038 " ,
8- "templateHash" : " 10251291785467156580 "
7+ "version" : " 0.33.93.31351 " ,
8+ "templateHash" : " 5420819438241424994 "
99 }
1010 },
1111 "parameters" : {
128128 "metadata" : {
129129 "_generator" : {
130130 "name" : " bicep" ,
131- "version" : " 0.34.44.8038 " ,
132- "templateHash" : " 2941318787429287286 "
131+ "version" : " 0.33.93.31351 " ,
132+ "templateHash" : " 11920656242524003012 "
133133 }
134134 },
135135 "parameters" : {
240240 "metadata" : {
241241 "_generator" : {
242242 "name" : " bicep" ,
243- "version" : " 0.34.44.8038 " ,
244- "templateHash" : " 5775352776365113688 "
243+ "version" : " 0.33.93.31351 " ,
244+ "templateHash" : " 13908043870536599124 "
245245 }
246246 },
247247 "parameters" : {
387387 "metadata" : {
388388 "_generator" : {
389389 "name" : " bicep" ,
390- "version" : " 0.34.44.8038 " ,
391- "templateHash" : " 7008311746261758591 "
390+ "version" : " 0.33.93.31351 " ,
391+ "templateHash" : " 17380969324509584072 "
392392 }
393393 },
394394 "parameters" : {
10401040 "type" : " string" ,
10411041 "value" : " [variables('storageNameCleaned')]"
10421042 },
1043+ "azureOpenAIApiKey" : {
1044+ "type" : " string" ,
1045+ "value" : " [listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2024-04-01-preview').key1]"
1046+ },
1047+ "azureOpenAIApiVersion" : {
1048+ "type" : " string" ,
1049+ "value" : " [parameters('azureOpenAIApiVersion')]"
1050+ },
1051+ "azureOpenAIEndpoint" : {
1052+ "type" : " string" ,
1053+ "value" : " [reference(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2024-04-01-preview').endpoint]"
1054+ },
1055+ "azureOpenAIDeploymentModel" : {
1056+ "type" : " string" ,
1057+ "value" : " [parameters('gptModelName')]"
1058+ },
1059+ "azureOpenAIResource" : {
1060+ "type" : " string" ,
1061+ "value" : " [variables('aiServicesName')]"
1062+ },
1063+ "azureOpenAIPreviewApiVersion" : {
1064+ "type" : " string" ,
1065+ "value" : " [parameters('azureOpenAIApiVersion')]"
1066+ },
10431067 "azureOpenAIKeyName" : {
10441068 "type" : " string" ,
10451069 "value" : " AZURE-OPENAI-KEY"
1070+ },
1071+ "azureAIProjectConnectionStringEntry" : {
1072+ "type" : " string" ,
1073+ "value" : " [format('{0};{1};{2};{3}', split(reference(resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName')), '2024-01-01-preview').discoveryUrl, '/')[2], subscription().subscriptionId, resourceGroup().name, variables('aiProjectName'))]"
10461074 }
10471075 }
10481076 }
10821110 "metadata" : {
10831111 "_generator" : {
10841112 "name" : " bicep" ,
1085- "version" : " 0.34.44.8038 " ,
1086- "templateHash" : " 17679659647877785824 "
1113+ "version" : " 0.33.93.31351 " ,
1114+ "templateHash" : " 14620142974675285735 "
10871115 }
10881116 },
10891117 "parameters" : {
12661294 "metadata" : {
12671295 "_generator" : {
12681296 "name" : " bicep" ,
1269- "version" : " 0.34.44.8038 " ,
1270- "templateHash" : " 573049773979289587 "
1297+ "version" : " 0.33.93.31351 " ,
1298+ "templateHash" : " 12758765861849969682 "
12711299 }
12721300 },
12731301 "parameters" : {
14371465 "cosmosContainerName" : {
14381466 "type" : " string" ,
14391467 "value" : " [variables('collectionName')]"
1468+ },
1469+ "cosmosAccountKey" : {
1470+ "type" : " string" ,
1471+ "value" : " [listKeys(resourceId('Microsoft.DocumentDB/databaseAccounts', variables('accountName')), '2022-08-15').primaryMasterKey]"
14401472 }
14411473 }
14421474 }
14781510 "metadata" : {
14791511 "_generator" : {
14801512 "name" : " bicep" ,
1481- "version" : " 0.34.44.8038 " ,
1482- "templateHash" : " 12523803244328608887 "
1513+ "version" : " 0.33.93.31351 " ,
1514+ "templateHash" : " 16605082293199555822 "
14831515 }
14841516 },
14851517 "parameters" : {
16941726 "metadata" : {
16951727 "_generator" : {
16961728 "name" : " bicep" ,
1697- "version" : " 0.34.44.8038 " ,
1698- "templateHash" : " 6489935757234589237 "
1729+ "version" : " 0.33.93.31351 " ,
1730+ "templateHash" : " 16243838204790550721 "
16991731 }
17001732 },
17011733 "parameters" : {
18741906 "metadata" : {
18751907 "_generator" : {
18761908 "name" : " bicep" ,
1877- "version" : " 0.34.44.8038 " ,
1878- "templateHash" : " 5000589525239764864 "
1909+ "version" : " 0.33.93.31351 " ,
1910+ "templateHash" : " 3990461296238110870 "
18791911 },
18801912 "description" : " Creates an Azure App Service plan."
18811913 },
20232055 "metadata" : {
20242056 "_generator" : {
20252057 "name" : " bicep" ,
2026- "version" : " 0.34.44.8038 " ,
2027- "templateHash" : " 14001159014642291962 "
2058+ "version" : " 0.33.93.31351 " ,
2059+ "templateHash" : " 4409089350471444690 "
20282060 }
20292061 },
20302062 "parameters" : {
21242156 "metadata" : {
21252157 "_generator" : {
21262158 "name" : " bicep" ,
2127- "version" : " 0.34.44.8038 " ,
2128- "templateHash" : " 356166454386735487 "
2159+ "version" : " 0.33.93.31351 " ,
2160+ "templateHash" : " 16308543969241672542 "
21292161 }
21302162 },
21312163 "parameters" : {
22402272 "metadata" : {
22412273 "_generator" : {
22422274 "name" : " bicep" ,
2243- "version" : " 0.34.44.8038 " ,
2244- "templateHash" : " 14980344017942960012 "
2275+ "version" : " 0.33.93.31351 " ,
2276+ "templateHash" : " 5462989833378560251 "
22452277 },
22462278 "description" : " Updates app settings for an Azure App Service."
22472279 },
22922324 "appUrl" : {
22932325 "type" : " string" ,
22942326 "value" : " [reference(resourceId('Microsoft.Resources/deployments', format('{0}-app-module', variables('name'))), '2022-09-01').outputs.appUrl.value]"
2327+ },
2328+ "REACT_APP_LAYOUT_CONFIG" : {
2329+ "type" : " string" ,
2330+ "value" : " [variables('reactAppLayoutConfig')]"
22952331 }
22962332 }
22972333 }
23392375 "metadata" : {
23402376 "_generator" : {
23412377 "name" : " bicep" ,
2342- "version" : " 0.34.44.8038 " ,
2343- "templateHash" : " 13062487122244574247 "
2378+ "version" : " 0.33.93.31351 " ,
2379+ "templateHash" : " 3039320665387926557 "
23442380 }
23452381 },
23462382 "parameters" : {
23952431 "metadata" : {
23962432 "_generator" : {
23972433 "name" : " bicep" ,
2398- "version" : " 0.34.44.8038 " ,
2399- "templateHash" : " 356166454386735487 "
2434+ "version" : " 0.33.93.31351 " ,
2435+ "templateHash" : " 16308543969241672542 "
24002436 }
24012437 },
24022438 "parameters" : {
25112547 "metadata" : {
25122548 "_generator" : {
25132549 "name" : " bicep" ,
2514- "version" : " 0.34.44.8038 " ,
2515- "templateHash" : " 14980344017942960012 "
2550+ "version" : " 0.33.93.31351 " ,
2551+ "templateHash" : " 5462989833378560251 "
25162552 },
25172553 "description" : " Updates app settings for an Azure App Service."
25182554 },
25632599 "appUrl" : {
25642600 "type" : " string" ,
25652601 "value" : " [reference(resourceId('Microsoft.Resources/deployments', format('{0}-app-module', variables('name'))), '2022-09-01').outputs.appUrl.value]"
2602+ },
2603+ "appInsightsInstrumentationKey" : {
2604+ "type" : " string" ,
2605+ "value" : " [reference(parameters('applicationInsightsId'), '2015-05-01').InstrumentationKey]"
25662606 }
25672607 }
25682608 }
25782618 "WEB_APP_URL" : {
25792619 "type" : " string" ,
25802620 "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_frontend_docker'), '2022-09-01').outputs.appUrl.value]"
2621+ },
2622+ "REACT_APP_LAYOUT_CONFIG" : {
2623+ "type" : " string" ,
2624+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_backend_docker'), '2022-09-01').outputs.REACT_APP_LAYOUT_CONFIG.value]"
2625+ },
2626+ "imageTag" : {
2627+ "type" : " string" ,
2628+ "value" : " [parameters('imageTag')]"
2629+ },
2630+ "APPINSIGHTS_INSTRUMENTATIONKEY" : {
2631+ "type" : " string" ,
2632+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_frontend_docker'), '2022-09-01').outputs.appInsightsInstrumentationKey.value]"
2633+ },
2634+ "AZURE_OPENAI_ENDPOINT" : {
2635+ "type" : " string" ,
2636+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.azureOpenAIEndpoint.value]"
2637+ },
2638+ "AZURE_OPENAI_DEPLOYMENT_NAME" : {
2639+ "type" : " string" ,
2640+ "value" : " [parameters('gptModelName')]"
2641+ },
2642+ "AZURE_OPENAI_API_KEY" : {
2643+ "type" : " string" ,
2644+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.azureOpenAIApiKey.value]"
2645+ },
2646+ "AZURE_OPENAI_API_VERSION" : {
2647+ "type" : " string" ,
2648+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.azureOpenAIApiVersion.value]"
2649+ },
2650+ "AZURE_OPENAI_RESOURCE" : {
2651+ "type" : " string" ,
2652+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.azureOpenAIResource.value]"
2653+ },
2654+ "AZURE_OPENAI_PREVIEW_API_VERSION" : {
2655+ "type" : " string" ,
2656+ "value" : " [variables('azureOpenAIApiVersion')]"
2657+ },
2658+ "USE_GRAPHRAG" : {
2659+ "type" : " string" ,
2660+ "value" : " False"
2661+ },
2662+ "USE_CHAT_HISTORY_ENABLED" : {
2663+ "type" : " string" ,
2664+ "value" : " True"
2665+ },
2666+ "AZURE_COSMOSDB_ACCOUNT" : {
2667+ "type" : " string" ,
2668+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosAccountName.value]"
2669+ },
2670+ "AZURE_COSMOSDB_ACCOUNT_KEY" : {
2671+ "type" : " string" ,
2672+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosAccountKey.value]"
2673+ },
2674+ "AZURE_COSMOSDB_CONVERSATIONS_CONTAINER" : {
2675+ "type" : " string" ,
2676+ "value" : " conversations"
2677+ },
2678+ "AZURE_COSMOSDB_DATABASE" : {
2679+ "type" : " string" ,
2680+ "value" : " db_conversaation_history"
2681+ },
2682+ "AZURE_COSMOSDB_ENABLE_FEEDBACK" : {
2683+ "type" : " string" ,
2684+ "value" : " True"
2685+ },
2686+ "DISPLAY_CHART_DEFAULT" : {
2687+ "type" : " string" ,
2688+ "value" : " True"
2689+ },
2690+ "AZURE_AI_PROJECT_CONN_STRING" : {
2691+ "type" : " string" ,
2692+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.azureAIProjectConnectionStringEntry.value]"
2693+ },
2694+ "USE_AI_PROJECT_CLIENT" : {
2695+ "type" : " string" ,
2696+ "value" : " False"
2697+ },
2698+ "SQLDB_DATABASE" : {
2699+ "type" : " string" ,
2700+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbName.value]"
2701+ },
2702+ "SQLDB_SERVER" : {
2703+ "type" : " string" ,
2704+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]"
2705+ },
2706+ "SQLDB_USERNAME" : {
2707+ "type" : " string" ,
2708+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbUser.value]"
2709+ },
2710+ "SQLDB_USER_MID" : {
2711+ "type" : " string" ,
2712+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity'), '2022-09-01').outputs.managedIdentityBackendAppOutput.value.clientId]"
2713+ },
2714+ "REACT_APP_API_BASE_URL" : {
2715+ "type" : " string" ,
2716+ "value" : " [reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_backend_docker'), '2022-09-01').outputs.appUrl.value]"
25812717 }
25822718 }
25832719}
0 commit comments