File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -101,3 +101,23 @@ resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting_log_analytics_
101
101
}
102
102
}
103
103
}
104
+
105
+ resource "azurerm_monitor_private_link_scope" "mpls" {
106
+ name = " ${ local . prefix } -ampls001"
107
+ resource_group_name = azurerm_resource_group. logging_rg . name
108
+ tags = var. tags
109
+ }
110
+
111
+ resource "azurerm_monitor_private_link_scoped_service" "mpls_application_insights" {
112
+ name = " ampls-${ azurerm_application_insights . application_insights . name } "
113
+ resource_group_name = azurerm_monitor_private_link_scope. mpls . resource_group_name
114
+ scope_name = azurerm_monitor_private_link_scope. mpls . name
115
+ linked_resource_id = azurerm_application_insights. application_insights . id
116
+ }
117
+
118
+ resource "azurerm_monitor_private_link_scoped_service" "mpls_log_analytics_workspace" {
119
+ name = " ampls-${ azurerm_log_analytics_workspace . log_analytics_workspace . name } "
120
+ resource_group_name = azurerm_monitor_private_link_scope. mpls . resource_group_name
121
+ scope_name = azurerm_monitor_private_link_scope. mpls . name
122
+ linked_resource_id = azurerm_log_analytics_workspace. log_analytics_workspace . id
123
+ }
You can’t perform that action at this time.
0 commit comments