From ad33c27270c8d4c10a23f5d8b541219eb2f0f8dc Mon Sep 17 00:00:00 2001 From: Jack Tracey <41163455+jtracey93@users.noreply.github.com> Date: Wed, 3 May 2023 11:43:30 +0100 Subject: [PATCH] Fixes #517 by making the deployment name for the recently added module unique on the zones resource ID (#518) --- .../bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra-as-code/bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep b/infra-as-code/bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep index b8ae0c247..5086a3b77 100644 --- a/infra-as-code/bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep +++ b/infra-as-code/bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep @@ -162,7 +162,7 @@ module modSpokeNetworking '../../modules/spokeNetworking/spokeNetworking.bicep' // Module - Private DNS Zone Virtual Network Link to Spoke module modPrivateDnsZoneLinkToSpoke '../../modules/privateDnsZoneLinks/privateDnsZoneLinks.bicep' = [for zones in parPrivateDnsZoneResourceIds: if (!empty(parPrivateDnsZoneResourceIds)) { scope: resourceGroup(split(zones, '/')[1], split(zones, '/')[4] ) - name: varModuleDeploymentNames.modPrivateDnsZoneLinkToSpoke + name: take('${varModuleDeploymentNames.modPrivateDnsZoneLinkToSpoke}-${uniqueString(zones)}', 64) params: { parPrivateDnsZoneResourceIds: parPrivateDnsZoneResourceIds parSpokeVirtualNetworkResourceId: modSpokeNetworking.outputs.outSpokeVirtualNetworkId