Skip to content

Commit 54959f2

Browse files
committed
fixes
1 parent 9edb520 commit 54959f2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

articles/private-link/create-private-link-service-powershell.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Before a private link service can be created in the virtual network, the setting
136136

137137
* Disable the network policy with [Set-AzVirtualNetwork](/powershell/module/az.network/Set-AzVirtualNetwork).
138138

139-
```azurepowershell
139+
```azurepowershell-interactive
140140
## Place the subnet name into a variable. ##
141141
$subnet = 'mySubnet'
142142
@@ -162,7 +162,7 @@ In this section, create a private link service that uses the Standard Azure Load
162162

163163
* Create the private link service with [New-AzPrivateLinkService](/powershell/module/az.network/new-azprivatelinkservice).
164164

165-
```azurepowershell
165+
```azurepowershell-interactive
166166
## Place the virtual network into a variable. ##
167167
$vnet = Get-AzVirtualNetwork -Name 'myVNet' -ResourceGroupName 'CreatePrivLinkService-rg'
168168
@@ -231,8 +231,6 @@ $vnetpe = New-AzVirtualNetwork @net
231231

232232
* Use [New-AzPrivateEndpoint](/powershell/module/az.network/new-azprivateendpoint) to create the endpoint.
233233

234-
235-
236234
```azurepowershell-interactive
237235
## Place the private link service configuration into variable. ##
238236
$par1 = @{
@@ -312,7 +310,7 @@ $pe.NetworkInterfaces[0].IpConfigurations[0].PrivateIpAddress
312310

313311
```powershell
314312
❯ $pe.NetworkInterfaces[0].IpConfigurations[0].PrivateIpAddress
315-
11.1.0.4
313+
10.1.0.4
316314
```
317315

318316
## Clean up resources

0 commit comments

Comments
 (0)