Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ac2e89e
Initial plan
Copilot Nov 20, 2025
c32a87a
Fix workspace deletion failures by adding create_before_destroy to AM…
Copilot Nov 20, 2025
5d9bb7d
Add create_before_destroy to Azure Monitor DNS zones and VNet links t…
Copilot Nov 21, 2025
d66e33f
Fix lifecycle block formatting for consistency
Copilot Nov 21, 2025
9e937b4
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Nov 21, 2025
38788f5
Bump workspace base template to 2.7.2 and core to 0.16.11 for bug fix
Copilot Nov 21, 2025
6a2bf72
revert core changes
marrobi Nov 21, 2025
4f167ef
Remove core version bump from CHANGELOG since core changes were reverted
Copilot Nov 21, 2025
f772a13
Extract private_dns_zone_group into separate resource to fix AnotherO…
Copilot Nov 21, 2025
21caa6e
Revert separate DNS zone group resource - use inline with enhanced de…
Copilot Nov 22, 2025
aa82947
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Nov 26, 2025
50d36ae
Remove create_before_destroy - keep only enhanced depends_on for testing
Copilot Nov 26, 2025
5941585
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Nov 28, 2025
fc12afe
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Dec 18, 2025
f12f533
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Feb 2, 2026
ae93bc4
Extract DNS zone group to azapi_resource to fix AnotherOperationInPro…
Copilot Feb 2, 2026
e722447
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Feb 2, 2026
3bd89e7
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Feb 4, 2026
963842a
Add response_export_values to azapi_resource to fix Missing Resource …
Copilot Feb 4, 2026
eb0af13
Merge branch 'main' into copilot/fix-workspace-deletion-error
marrobi Feb 5, 2026
e1caf5f
Use jsonencode and disable schema_validation for azapi DNS zone group
Copilot Feb 5, 2026
cb12424
Revert to plain HCL syntax for azapi_resource body (remove jsonencode)
Copilot Feb 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ BUG FIXES:
* Fix deleted workspaces still accessible via URL - get_*_by_id methods now filter out deleted resources ([#4785](https://github.com/microsoft/AzureTRE/issues/4785))
* Fix circular dependancy in base workspace. ([#4756](https://github.com/microsoft/AzureTRE/pull/4756))
* Replaced deprecated `datetime.utcnow()` with `datetime.now(datetime.UTC)` in the API and airlock processor. ([#4743](https://github.com/microsoft/AzureTRE/issues/4743))
* Fix workspace deletion failures due to AnotherOperationInProgress errors on AMPLS private endpoint ([#3194](https://github.com/microsoft/AzureTRE/issues/3194))
* Updated error messages when publishing a template version that is lower than the existing version. ([#4685](https://github.com/microsoft/AzureTRE/issues/4685))
* Disable public access on stweb storage account ([#4766](https://github.com/microsoft/AzureTRE/issues/4766))
* Mark `auth_client_secret` variable as sensitive in terraform templates ([#4736](https://github.com/microsoft/AzureTRE/pull/4736))
Expand All @@ -51,6 +52,7 @@ BUG FIXES:
* Fix duplicate `TOPIC_SUBSCRIPTION_NAME` in `core/terraform/airlock/airlock_processor.tf` ([#4847](https://github.com/microsoft/AzureTRE/pull/4847))

COMPONENTS:
* Bump workspace base template version to 2.7.2 ([#3194](https://github.com/microsoft/AzureTRE/issues/3194))

| name | version |
| ----- | ----- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,60 @@ resource "azurerm_private_endpoint" "azure_monitor_private_endpoint" {
is_manual_connection = false
}

private_dns_zone_group {
name = "azure-monitor-private-dns-zone-group"

private_dns_zone_ids = [
var.azure_monitor_dns_zone_id,
var.azure_monitor_oms_opinsights_dns_zone_id,
var.azure_monitor_ods_opinsights_dns_zone_id,
var.azure_monitor_agentsvc_dns_zone_id,
var.blob_core_dns_zone_id,
]
depends_on = [
azurerm_monitor_private_link_scoped_service.ampls_app_insights,
azurerm_monitor_private_link_scoped_service.ampls_log_anaytics,
]
}

# Separate DNS zone group using azapi to avoid AnotherOperationInProgress errors
# See: https://github.com/hashicorp/terraform-provider-azurerm/issues/28715
resource "azapi_resource" "azure_monitor_dns_zone_group" {
type = "Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2023-11-01"
name = "azure-monitor-private-dns-zone-group"
parent_id = azurerm_private_endpoint.azure_monitor_private_endpoint.id

body = {
properties = {
privateDnsZoneConfigs = [
{
name = "privatelink-monitor-azure-com"
properties = {
privateDnsZoneId = var.azure_monitor_dns_zone_id
}
},
{
name = "privatelink-oms-opinsights-azure-com"
properties = {
privateDnsZoneId = var.azure_monitor_oms_opinsights_dns_zone_id
}
},
{
name = "privatelink-ods-opinsights-azure-com"
properties = {
privateDnsZoneId = var.azure_monitor_ods_opinsights_dns_zone_id
}
},
{
name = "privatelink-agentsvc-azure-automation-net"
properties = {
privateDnsZoneId = var.azure_monitor_agentsvc_dns_zone_id
}
},
{
name = "privatelink-blob-core-windows-net"
properties = {
privateDnsZoneId = var.blob_core_dns_zone_id
}
}
]
}
}

response_export_values = ["id"]

depends_on = [
azurerm_monitor_private_link_scoped_service.ampls_app_insights,
azurerm_private_endpoint.azure_monitor_private_endpoint,
]
}

Expand Down
4 changes: 4 additions & 0 deletions templates/workspaces/base/terraform/network/dns_zones.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ resource "azurerm_private_dns_zone" "azure_monitor_ods_opinsights" {
name = module.terraform_azurerm_environment_configuration.private_links["privatelink.ods.opinsights.azure.com"]
resource_group_name = var.ws_resource_group_name
tags = var.tre_workspace_tags

lifecycle { ignore_changes = [tags] }
}

Expand All @@ -63,13 +64,15 @@ resource "azurerm_private_dns_zone_virtual_network_link" "azure_monitor_ods_opin
private_dns_zone_name = azurerm_private_dns_zone.azure_monitor_ods_opinsights.name
registration_enabled = false
tags = var.tre_workspace_tags

lifecycle { ignore_changes = [tags] }
}

resource "azurerm_private_dns_zone" "azure_monitor_agentsvc" {
name = module.terraform_azurerm_environment_configuration.private_links["privatelink.agentsvc.azure-automation.net"]
resource_group_name = var.ws_resource_group_name
tags = var.tre_workspace_tags

lifecycle { ignore_changes = [tags] }
}

Expand All @@ -80,5 +83,6 @@ resource "azurerm_private_dns_zone_virtual_network_link" "azure_monitor_agentsvc
private_dns_zone_name = azurerm_private_dns_zone.azure_monitor_agentsvc.name
registration_enabled = false
tags = var.tre_workspace_tags

lifecycle { ignore_changes = [tags] }
}