Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 48abea8

Browse files
fix: Move Azure Monitor Private Link Scope to Hub (#127)
1 parent fea22fe commit 48abea8

File tree

3 files changed

+34
-57
lines changed

3 files changed

+34
-57
lines changed

.azuredevops/pipelines/cd-infrastructure-dev-audit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resources:
1414
- repository: dtos-devops-templates
1515
type: github
1616
name: NHSDigital/dtos-devops-templates
17-
ref: d00eaa9a7ce04b78ff5ebf488f6d265d929a58b3
17+
ref: fix/log-analytics-private-DNS
1818
endpoint: NHSDigital
1919

2020
variables:
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Create the private link service for Application Insights
2+
module "private_link_scoped_service_app_insights" {
3+
for_each = var.features.private_endpoints_enabled ? var.regions : {}
4+
5+
source = "../../../dtos-devops-templates/infrastructure/modules/private-link-scoped-service"
6+
7+
providers = {
8+
azurerm = azurerm.hub
9+
}
10+
11+
name = "${module.regions_config[each.key].names.log-analytics-workspace}-ampls-service-app-insights"
12+
resource_group_name = data.terraform_remote_state.hub.outputs.private_endpoint_rg_name[each.key]
13+
14+
linked_resource_id = module.app_insights_audit[each.key].id
15+
scope_name = data.terraform_remote_state.hub.outputs.azure_monitor_private_link_scope_name
16+
}
17+
18+
# Create the private link service for Log Analytics
19+
module "private_link_scoped_service_law" {
20+
for_each = var.features.private_endpoints_enabled ? var.regions : {}
21+
22+
source = "../../../dtos-devops-templates/infrastructure/modules/private-link-scoped-service"
23+
24+
providers = {
25+
azurerm = azurerm.hub
26+
}
27+
28+
name = "${module.regions_config[each.key].names.log-analytics-workspace}-ampls-service-law"
29+
resource_group_name = data.terraform_remote_state.hub.outputs.private_endpoint_rg_name[each.key]
30+
31+
linked_resource_id = module.log_analytics_workspace_audit[each.key].id
32+
scope_name = data.terraform_remote_state.hub.outputs.azure_monitor_private_link_scope_name
33+
}

infrastructure/tf-audit/private_link_scopes.tf

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)