Skip to content

Commit d5af0a7

Browse files
committed
fixes
1 parent 40c90ac commit d5af0a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,20 @@ Before a private link service can be created in the virtual network, the setting
137137
* Disable the network policy with [Set-AzVirtualNetwork](/powershell/module/az.network/Set-AzVirtualNetwork).
138138

139139
```azurepowershell
140+
## Place the subnet name into a variable. ##
140141
$subnet = 'mySubnet'
141142
143+
## Place the virtual network configuration into a variable. ##
142144
$net = @{
143145
Name = 'myVNet'
144146
ResourceGroupName = 'myResourceGroup'
145147
}
146148
$vnet = Get-AzVirtualNetwork @net
147149
150+
## Set the policy as disabled on the virtual network. ##
148151
($vnet | Select -ExpandProperty subnets | Where-Object {$_.Name -eq $subnet}).privateLinkServiceNetworkPolicies = "Disabled"
149152
153+
## Save the configuration changes to the virtual network. ##
150154
$vnet | Set-AzVirtualNetwork
151155
```
152156

0 commit comments

Comments
 (0)