From 07fe99f62a7ea1b4bc7bf4c803ea9a00059a212a Mon Sep 17 00:00:00 2001 From: Steven Hoang Date: Mon, 12 Aug 2024 18:04:39 +0800 Subject: [PATCH] update static ipconfig for private link --- src/VNet/PrivateEndpoint.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/VNet/PrivateEndpoint.ts b/src/VNet/PrivateEndpoint.ts index 2649ae8..9aae41d 100644 --- a/src/VNet/PrivateEndpoint.ts +++ b/src/VNet/PrivateEndpoint.ts @@ -39,10 +39,20 @@ export default ({ }, ] : undefined, + ipConfigurations: privateIpAddress + ? [ + { + name: `${name}-ipconfig`, + groupId: linkServiceGroupIds[0], + memberName: linkServiceGroupIds[0], + privateIPAddress: privateIpAddress, + }, + ] + : undefined, privateLinkServiceConnections: [ { - groupIds: linkServiceGroupIds, name: `${name}-conn`, + groupIds: linkServiceGroupIds, privateLinkServiceId: resourceInfo.id, }, ],