Remove-​Azure​Rm​Load​Balancer​Inbound​Nat​Rule​Config

Removes an inbound NAT rule configuration from a load balancer.

Syntax

Remove-AzureRmLoadBalancerInboundNatRuleConfig
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      -LoadBalancer <PSLoadBalancer>
      [-Name <String>]
      [<CommonParameters>]

Description

The Remove-AzureRmLoadBalancerInboundNatRuleConfig cmdlet removes an inbound network address translation (NAT) rule configuration from an Azure load balancer.

Examples

1: Delete an inbound NAT rule from an Azure load balancer

$loadbalancer = Get-AzureRmLoadBalancer -Name mylb -ResourceGroupName myrg

 Remove-AzureRmLoadBalancerInboundNatRuleConfig -Name "myinboundnatrule" -LoadBalancer $loadbalancer

The first command loads an already existing load balancer called "mylb" and stores it in the variable $load balancer. The second command removes the inbound NAT rule associated with this load balancer.

Required Parameters

-LoadBalancer

Specifies the LoadBalancer object that contains the inbound NAT rule configuration that this cmdlet removes.

Type:PSLoadBalancer
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the inbound NAT rule configuration that this cmdlet removes.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False