Skip to content

Commit

Permalink
unique name for private endpoint service creation (#917)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
geoberle authored Dec 3, 2024
1 parent a40992b commit d487f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-infrastructure/modules/private-endpoint.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit d487f52

Please sign in to comment.