File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 40
40
uses : ./.github/workflows/_terraformApplyTemplate.yml
41
41
name : " Terraform Apply"
42
42
needs : [terraform_plan_dev]
43
- if : github.event_name == 'push' || github.event_name == 'release'
43
+ # if: github.event_name == 'push' || github.event_name == 'release'
44
44
with :
45
45
environment : " dev"
46
46
terraform_version : " 1.4.6"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ resource "azurerm_application_insights" "application_insights" {
10
10
force_customer_storage_for_profiler = false
11
11
internet_ingestion_enabled = true
12
12
internet_query_enabled = true
13
- local_authentication_disabled = false
13
+ local_authentication_disabled = true
14
14
retention_in_days = 90
15
15
sampling_percentage = 100
16
16
workspace_id = azurerm_log_analytics_workspace. log_analytics_workspace . id
Original file line number Diff line number Diff line change @@ -9,3 +9,9 @@ resource "azurerm_role_assignment" "function_role_assignment_key_vault" {
9
9
role_definition_name = " Key Vault Secrets User"
10
10
principal_id = azapi_resource. function . identity [0 ]. principal_id
11
11
}
12
+
13
+ resource "azurerm_role_assignment" "function_role_assignment_application_insights" {
14
+ scope = azurerm_application_insights. application_insights . id
15
+ role_definition_name = " Monitoring Metrics Publisher"
16
+ principal_id = azapi_resource. function . identity [0 ]. principal_id
17
+ }
You can’t perform that action at this time.
0 commit comments