From 3235c8021b343d95ab1ca48a7e9cf18b65cebf4d Mon Sep 17 00:00:00 2001 From: "Xavier Pillons (MSFT)" Date: Thu, 4 Apr 2024 12:38:42 +0200 Subject: [PATCH] unique peering name deployment --- bicep/mainTemplate.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bicep/mainTemplate.bicep b/bicep/mainTemplate.bicep index e5c52899..243f0308 100644 --- a/bicep/mainTemplate.bicep +++ b/bicep/mainTemplate.bicep @@ -74,7 +74,7 @@ module azhopDeployment './azhop.bicep' = { var vnetPeerings = contains(azhopConfig.network, 'peering') ? azhopConfig.network.peering : [] module azhopPeerings './vnetpeering.bicep' = [ for peer in vnetPeerings: { - name: 'peer_from${peer.vnet_name}' + name: 'peer_from${peer.vnet_name}_${guid(azhopResourceGroup.id)}' scope: resourceGroup(peer.vnet_resource_group) params: { name: '${azhopConfig.resource_group}_${azhopConfig.network.vnet.name}'