File tree Expand file tree Collapse file tree 5 files changed +21
-1
lines changed Expand file tree Collapse file tree 5 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 13
13
AZURE_SEARCH_ENDPOINT : {{.Env.AZURE_SEARCH_ENDPOINT}}
14
14
AZURE_SEARCH_API_KEY : {{.Env.AZURE_SEARCH_API_KEY}}
15
15
AZURE_SEARCH_INDEX_NAME : {{.Env.AZURE_SEARCH_INDEX_NAME}}
16
+ APPLICATIONINSIGHTS_CONNECTION_STRING : {{.Env.APPLICATIONINSIGHTS_CONNECTION_STRING}}
16
17
VECTORDB_TYPE : {{.Env.VECTORDB_TYPE}}
17
18
Original file line number Diff line number Diff line change 42
42
value : {{.Env.AZURE_SEARCH_INDEX_NAME}}
43
43
- name : VECTORDB_TYPE
44
44
value : {{.Env.VECTORDB_TYPE}}
45
+ - name : APPLICATIONINSIGHTS_CONNECTION_STRING
46
+ value : {{.Env.APPLICATIONINSIGHTS_CONNECTION_STRING}}
45
47
resources :
46
48
requests :
47
49
memory : " 256Mi"
Original file line number Diff line number Diff line change @@ -57,3 +57,14 @@ resource "azurerm_monitor_data_collection_rule_association" "example_msci_to_aks
57
57
target_resource_id = azurerm_kubernetes_cluster. aks [0 ]. id
58
58
data_collection_rule_id = azurerm_monitor_data_collection_rule. example_msci [0 ]. id
59
59
}
60
+
61
+
62
+ resource "azurerm_application_insights" "applicationinsights" {
63
+ count = local. deploy_observability_tools ? 1 : 0
64
+ name = " ai-${ local . resource_token } "
65
+ location = azurerm_resource_group. rg . location
66
+ resource_group_name = azurerm_resource_group. rg . name
67
+ application_type = " web"
68
+ workspace_id = azurerm_log_analytics_workspace. example [0 ]. id
69
+ tags = local. tags
70
+ }
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ output "AZURE_RESOURCE_GROUP" {
70
70
output "AZURE_TENANT_ID" {
71
71
value = data. azurerm_client_config . current . tenant_id
72
72
}
73
+
73
74
output "AZURE_SEARCH_ENDPOINT" {
74
75
value = " https://${ azurerm_search_service . search . name } .search.windows.net"
75
76
}
@@ -95,3 +96,8 @@ output "BING_SEARCH_KEY" {
95
96
value = jsondecode (data. azapi_resource_action . bing . output ). key1
96
97
sensitive = true
97
98
}
99
+
100
+ output "APPLICATIONINSIGHTS_CONNECTION_STRING" {
101
+ value = local. deploy_observability_tools ? " " : azurerm_application_insights. applicationinsights [0 ]. connection_string
102
+ sensitive = true
103
+ }
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ resource "azurerm_search_service" "search" {
13
13
14
14
local_authentication_enabled = true
15
15
authentication_failure_mode = " http403"
16
- semantic_search_sku = " free"
16
+ semantic_search_sku = " free"
17
17
}
You can’t perform that action at this time.
0 commit comments