From d487f529537b5877a8cb48700b2d4c12df9fa2d3 Mon Sep 17 00:00:00 2001 From: Gerd Oberlechner Date: Tue, 3 Dec 2024 14:16:33 +0100 Subject: [PATCH] unique name for private endpoint service creation (#917) adapt the private endpoint name pattern to include the actual endpoint service id. otherwise only one private endpoint can be created per resourcegroup and service type. Signed-off-by: Gerd Oberlechner --- dev-infrastructure/modules/private-endpoint.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-infrastructure/modules/private-endpoint.bicep b/dev-infrastructure/modules/private-endpoint.bicep index 11f705234..0b73ea88c 100644 --- a/dev-infrastructure/modules/private-endpoint.bicep +++ b/dev-infrastructure/modules/private-endpoint.bicep @@ -53,7 +53,7 @@ resource privateEndpointDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' = resource privatEndpoint 'Microsoft.Network/privateEndpoints@2023-09-01' = [ for aksNodeSubnetId in subnetIds: { - name: '${serviceType}-${uniqueString(aksNodeSubnetId)}' + name: '${serviceType}-${uniqueString(aksNodeSubnetId, privateLinkServiceId)}' location: location properties: { privateLinkServiceConnections: [