@@ -14,10 +14,10 @@ Creates a private link service
14
14
15
15
```
16
16
New-AzPrivateLinkService -Name <String> -ResourceGroupName <String> -Location <String>
17
- -LoadBalancerFrontendIpConfiguration <PSFrontendIPConfiguration []>
18
- -IpConfiguration <PSPrivateLinkServiceIpConfiguration[]> [-Visibility <String[] >] [-AutoApproval <String[]> ]
19
- [-EnableProxyProtocol] [-EdgeZone <String >] [-Tag <Hashtable>] [-Force] [-AsJob ]
20
- [-DefaultProfile <IAzureContextContainer>] [- WhatIf] [-Confirm] [<CommonParameters>]
17
+ -IpConfiguration <PSPrivateLinkServiceIpConfiguration []> [-Visibility <String[]>] [-AutoApproval <String[]>]
18
+ [-DestinationIPAddress <String>] [-EnableProxyProtocol] [-EdgeZone <String>] [-Tag <Hashtable>] [-Force] [-AsJob ]
19
+ [-DefaultProfile <IAzureContextContainer >] [-LoadBalancerFrontendIpConfiguration <PSFrontendIPConfiguration[]> ]
20
+ [-WhatIf] [-Confirm] [<CommonParameters>]
21
21
```
22
22
23
23
## DESCRIPTION
@@ -27,7 +27,7 @@ The **New-AzPrivateLinkService** cmdlet creates a private link service
27
27
28
28
### Example 1
29
29
30
- The following example creates a private link service.
30
+ The following example creates a private link service with a load balancer .
31
31
32
32
``` powershell
33
33
$vnet = Get-AzVirtualNetwork -ResourceName 'myvnet' -ResourceGroupName 'myresourcegroup'
@@ -40,6 +40,21 @@ $lb = New-AzLoadBalancer -Name 'MyLoadBalancer' -ResourceGroupName 'myresourcegr
40
40
New-AzPrivateLinkService -Name 'mypls' -ResourceGroupName myresourcegroup -Location "West US" -LoadBalancerFrontendIpConfiguration $frontend -IpConfiguration $IPConfig
41
41
```
42
42
43
+ ### Example 2
44
+
45
+ The following example creates a private link service with destinationIPAddress.
46
+
47
+ ``` powershell
48
+ $vnet = Get-AzVirtualNetwork -ResourceName 'myvnet' -ResourceGroupName 'myresourcegroup'
49
+ # View the results of $vnet and change 'mysubnet' in the following line to the appropriate subnet name.
50
+ $subnet = $vnet | Select-Object -ExpandProperty subnets | Where-Object Name -eq 'mysubnet'
51
+ $IPConfig1 = New-AzPrivateLinkServiceIpConfig -Name 'IP-Config1' -Subnet $subnet -PrivateIpAddress '10.0.0.5' -Primary
52
+ $IPConfig2 = New-AzPrivateLinkServiceIpConfig -Name 'IP-Config2' -Subnet $subnet -PrivateIpAddress '10.0.0.6'
53
+ $IPConfig3 = New-AzPrivateLinkServiceIpConfig -Name 'IP-Config3' -Subnet $subnet -PrivateIpAddress '10.0.0.7'
54
+ $IPConfigs = @($IPConfig1, $IPConfig2, $IPConfig3)
55
+ New-AzPrivateLinkService -Name 'mypls' -ResourceGroupName myresourcegroup -Location "West US" -IpConfiguration $IPConfigs -DestinationIPAddress '192.168.0.5'
56
+ ```
57
+
43
58
## PARAMETERS
44
59
45
60
### -AsJob
@@ -87,6 +102,21 @@ Accept pipeline input: False
87
102
Accept wildcard characters : False
88
103
` ` `
89
104
105
+ ### -DestinationIPAddress
106
+ The destination IP address of the private link service.
107
+
108
+ ` ` ` yaml
109
+ Type : System.String
110
+ Parameter Sets : (All)
111
+ Aliases :
112
+
113
+ Required : False
114
+ Position : Named
115
+ Default value : None
116
+ Accept pipeline input : True (ByPropertyName)
117
+ Accept wildcard characters : False
118
+ ` ` `
119
+
90
120
### -EdgeZone
91
121
The edge zone of the private link service
92
122
@@ -155,7 +185,7 @@ Type: Microsoft.Azure.Commands.Network.Models.PSFrontendIPConfiguration[]
155
185
Parameter Sets : (All)
156
186
Aliases :
157
187
158
- Required : True
188
+ Required : False
159
189
Position : Named
160
190
Default value : None
161
191
Accept pipeline input : True (ByPropertyName)
0 commit comments