Skip to content

Commit db56960

Browse files
authored
Added an additional cmdline to the example which applies the changes to the load balancer (#14185)
When running the PowerShell example, the changes will not be applied to the load balancer unless you perform an additional Set-AzLoadBalancer step.
1 parent dd2e94b commit db56960

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Network/Network/help/Add-AzLoadBalancerInboundNatRuleConfig.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ The **Add-AzLoadBalancerInboundNatRuleConfig** cmdlet adds an inbound network ad
3838
```
3939
PS C:\>$slb = Get-AzLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
4040
PS C:\> $slb | Add-AzLoadBalancerInboundNatRuleConfig -Name "NewNatRule" -FrontendIPConfiguration $slb.FrontendIpConfigurations[0] -Protocol "Tcp" -FrontendPort 3350 -BackendPort 3350 -EnableFloatingIP
41+
PS C:\> $slb | Set-AzLoadBalancer
4142
```
4243

4344
The first command gets the load balancer named MyloadBalancer, and then stores it in the variable $slb.
4445
The second command uses the pipeline operator to pass the load balancer in $slb to **Add-AzLoadBalancerInboundNatRuleConfig**, which adds an inbound NAT rule configuration to the load balancer.
46+
The last command sets the configuration to the loadbalancer, if you don't perform Set-AzLoadBalancer, your changes will not be applied to the loadbalancer.
4547

4648
## PARAMETERS
4749

0 commit comments

Comments
 (0)